Commit Graph

1421 Commits

Author SHA1 Message Date
Mark Paluch
eec18a71ff DATACASS-817 - Updated changelog. 2020-12-09 09:59:07 +01:00
Mark Paluch
5d2c0bfd74 DATACASS-804 - Update CI jobs for Java 15. 2020-12-07 14:55:37 +01:00
Mark Paluch
49f75ab268 DATACASS-834 - Default to datacenter1 in AbstractSessionConfiguration.getLocalDataCenter.
Align with Cassandra defaults when starting a new server. Also, improve Javadoc explaining when the localDataCenter setting is required.
2020-12-07 14:41:29 +01:00
Mark Paluch
8f3a262e54 DATACASS-833 - Deprecate cached PreparedStatementCreator support classes.
Since Cassandra driver version 4, the driver itself tracks prepared statements so external prepared statement caching is no longer required.
2020-12-07 14:36:02 +01:00
Mark Paluch
ed46d742eb DATACASS-510 - Introduce support for prepared statements using CassandraTemplate.
We now support prepared statement usage through CassandraTemplate and its asynchronous and reactive variants. All statements created or received by CassandraTemplate will be prepared. CassandraTemplate is an infrastructure class for repositories so prepared statements will affect repositories, too.
2020-12-07 14:34:24 +01:00
Mark Paluch
529e0692e6 DATACASS-832 - Use index-based parameter binding.
We now use positional parameters when building SimpleStatement through StatementBuilder by default to access the individual parameters later on for prepared statement usage.
2020-12-07 14:30:31 +01:00
Mark Paluch
8093392d60 DATACASS-829 - Consider contextual ColumnType when updating a column.
We now consider the contextual ColumnType that applies when using particular update operations within the context of a property reference. Query and Update objects reference properties in their criteria/assignments using operators that are related either to the entire property, the key-, value- or component-type aspect (querying whether map contains a key, updating a list at an index).

Previously, we considered the contextual column type only for criteria operators and updating a list with a mapped UDT failed as the column type of the property was used. By using a ColumnTypeTransformer abstraction we resolve the correct contextual column type so that subsequent mapping/conversion operations use the appropriate type hint.
2020-11-26 14:53:27 +01:00
Mark Paluch
e2f8bf2744 DATACASS-825 - Polishing.
Reoder methods. Remove unused code and imports.

Original pull request: #181.
2020-11-25 11:41:45 +01:00
Jens Schauder
418c743017 DATACASS-825 - Implements CrudRepository and ReactiveCrudRepository.deleteAllById(Iterable<ID> ids).
Original pull request: #181.
2020-11-25 09:42:05 +01:00
Mark Paluch
b8740711c5 DATACASS-798 - Introduce CassandraDriverOptionsConfigurer and allow specifying a configuration file.
We now allow configuring a DriverConfigLoaderBuilderConfigurer and specifying a driver configuration file through AbstractSessionConfiguration to improve configuration possibilities. The DriverConfigLoaderBuilderConfigurer gets applied after applying the configuration to DriverConfigLoaderBuilder. The driver config file acts as a fallback config if the configuration property cannot be looked up from system properties or from the configuration in DriverConfigLoaderBuilder.
2020-11-18 10:29:15 +01:00
Mark Paluch
2ecc51c2c4 DATACASS-828 - Resolve selection projection and ordering of composite key properties into multiple columns.
We now resolve property names pointing to a composite key property into its individual column names to be applies in a SELECT projection or for ordering.
2020-11-18 09:48:11 +01:00
Mark Paluch
5d0295c7a3 DATACASS-819 - Updated changelog. 2020-11-11 12:34:36 +01:00
Mark Paluch
4444cb5ffe DATACASS-821 - Enable Maven caching for Jenkins jobs. 2020-11-04 11:13:01 +01:00
Mark Paluch
7a7132a84a DATACASS-813 - After release cleanups. 2020-10-28 16:10:23 +01:00
Mark Paluch
31d8e825e1 DATACASS-813 - Prepare next development iteration. 2020-10-28 16:10:20 +01:00
Mark Paluch
a0b1e8e9d4 DATACASS-813 - Release version 3.1 GA (2020.0.0). 2020-10-28 15:46:54 +01:00
Mark Paluch
c50016a3cd DATACASS-813 - Prepare 3.1 GA (2020.0.0). 2020-10-28 15:46:31 +01:00
Mark Paluch
13eb27df1b DATACASS-813 - Updated changelog. 2020-10-28 15:46:12 +01:00
Mark Paluch
b05a42a34a DATACASS-802 - Updated changelog. 2020-10-28 15:03:01 +01:00
Mark Paluch
fad6782582 DATACASS-801 - Updated changelog. 2020-10-28 12:15:03 +01:00
Mark Paluch
4360da2f22 DATACASS-815 - Updated changelog. 2020-10-28 11:32:27 +01:00
Mark Paluch
73ffe7d911 DATACASS-816 - Polishing.
Original pull request: #176.
2020-10-23 15:28:54 +02:00
Jay Bryant
0b1fcb6495 DATACASS-816 - Wording changes.
Removed the language of oppression and violence
and replaced it with more neutral language.

Note that problematic words in the code have
to remain in the docs until the code changes.

Original pull request: #176.
2020-10-23 15:28:54 +02:00
Mark Paluch
857bde1311 DATACASS-814 - Polishing.
Fix typo in docs. Convert space indents to tabs.

Original pull request: #180.
2020-10-23 15:20:02 +02:00
Aldo Bongio
3b058156d4 DATACASS-814 - Use CQL in MapPreparedStatementCache.CacheKey instead representation of Object.toString().
We now correctly use the CQL text to cache prepared statements. Previously, we used toString() which was a leftover from the driver migration that now defaults to Object.toString() and so the cache key was not stable.

Original pull request: #180.
2020-10-23 15:20:02 +02:00
Christoph Strobl
fe2b56f9ec DATACASS-803 - After release cleanups. 2020-10-14 14:48:47 +02:00
Christoph Strobl
843b148b37 DATACASS-803 - Prepare next development iteration. 2020-10-14 14:48:45 +02:00
Christoph Strobl
ffd532670c DATACASS-803 - Release version 3.1 RC2 (2020.0.0). 2020-10-14 14:28:55 +02:00
Christoph Strobl
7a6aefd9ac DATACASS-803 - Prepare 3.1 RC2 (2020.0.0). 2020-10-14 14:27:38 +02:00
Christoph Strobl
c8c3bb64d0 DATACASS-803 - Updated changelog. 2020-10-14 14:27:33 +02:00
Mark Paluch
392cf775e3 DATACASS-810 - Add DataClassRowMapper.
DataClassRowMapper can map Cassandra results onto a class following the data class pattern (using constructor properties) or by setting bean properties.

data class Person(val firstname: String, val age: Int)

cqlTemplate.query("SELECT * FROM person", DataClassRowMapper<Person>())
2020-10-01 12:10:19 +02:00
Mark Paluch
9728df0c3c DATACASS-809 - Polishing.
Remove leading space in test strings to simplify assertions.
2020-10-01 10:50:07 +02:00
Mark Paluch
d6a32814ca DATACASS-809 - Add queryForStream methods to CqlOperations.
CqlOperations now exposes queryForStream methods to consume a query as java.util.stream.Stream accepting a RowMapper.
2020-10-01 10:48:06 +02:00
Mark Paluch
4f332dc5ac DATACASS-808 - Fix CQL statement logging.
We now attempt to extract the CQL query from various Statement and CqlProvider objects to log the CQL query.

Previously, the logger used the statement object with didn't render the query.
2020-09-30 15:57:38 +02:00
Mark Paluch
244f4f9a00 DATACASS-807 - Polishing.
Fix typo in test method name.
2020-09-25 16:25:24 +02:00
Mark Paluch
35e9d98ba1 DATACASS-807 - Adapt to changes in Spring Data Commons. 2020-09-25 14:59:55 +02:00
Mark Paluch
a4a67b6e63 DATACASS-806 - Add support for suspend repository query methods returning List<T>. 2020-09-22 14:51:00 +02:00
Greg L. Turnquist
f75eee31b5 DATACASS-804 - Only test other versions for local changes on main branch. 2020-09-18 11:04:45 -05:00
Mark Paluch
b135c8753d DATACASS-792 - After release cleanups. 2020-09-16 14:05:28 +02:00
Mark Paluch
cc33a9c4b7 DATACASS-792 - Prepare next development iteration. 2020-09-16 14:05:24 +02:00
Mark Paluch
5fc72f413c DATACASS-792 - Release version 3.1 RC1 (2020.0.0). 2020-09-16 13:57:41 +02:00
Mark Paluch
6e9474428f DATACASS-792 - Prepare 3.1 RC1 (2020.0.0). 2020-09-16 13:57:08 +02:00
Mark Paluch
2ba89b673d DATACASS-792 - Updated changelog. 2020-09-16 13:56:54 +02:00
Mark Paluch
b2520400c3 DATACASS-793 - Updated changelog. 2020-09-16 12:16:30 +02:00
Mark Paluch
e4ca909c1e DATACASS-786 - Updated changelog. 2020-09-16 11:20:07 +02:00
Mark Paluch
e433c64b0c DATACASS-785 - Updated changelog. 2020-09-16 10:38:56 +02:00
Mark Paluch
4354de756f DATACASS-800 - Polishing.
Use spread operator to pass array as vararg.
2020-09-09 13:50:10 +02:00
Mark Paluch
6a7e6378c3 DATACASS-800 - Upgrade to Cassandra driver 4.9.0. 2020-09-09 13:49:43 +02:00
Mark Paluch
48db9f9e38 DATACASS-800 - Upgrade to Cassandra driver 4.9.0. 2020-09-09 13:36:59 +02:00
Mark Paluch
b525081156 DATACASS-766 - Polishing.
Associate bean definition source from XML parsers.
2020-08-13 12:42:49 +02:00