Commit Graph

1401 Commits

Author SHA1 Message Date
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
Mark Paluch
72b78ec855 DATACASS-766 - Polishing.
Use InstanceSupplier to configure the contactPoints property. Using BeanDefinitionBuilder.addPropertyValue(…) uses reflection for setting the property value and for value type discovers. The discovered property descriptor depends on the actual method order in which setters are discovered hence the actual type may change from String to Collection<InetSocketAddress>. Therefore we avoid using reflection for contactPoints.

Original pull request: #178.
2020-08-13 12:42:49 +02:00
Mark Paluch
d573fb223c DATACASS-766 - Polishing.
Reflect changes in documentation. Accept IPv6 hosts with port.
Replace session builder supplier with template method and a specific implementation in the tests.

Make methods static where possible and reorder fields/classes according their visibility. Reduce test method visibility, add ticket references. Reformat code.

Original pull request: #178.
2020-08-13 09:55:58 +02:00
tomekl007
2591f3a197 DATACASS-766 - Add support for port per endpoint.
Original pull request: #178.
2020-08-13 09:53:53 +02:00
Mark Paluch
8fff511c0f DATACASS-795 - Polishing.
Fix bean names when reactive and imperative auditing are enabled.
2020-08-12 14:59:18 +02:00
Mark Paluch
bb6e77f04e DATACASS-795 - Reduce bean dependencies for PersistentEntitiesFactoryBean to CassandraConverter. 2020-08-12 14:59:17 +02:00
Mark Paluch
d2450d21c7 DATACASS-787 - Updated changelog. 2020-08-12 13:25:47 +02:00
Mark Paluch
bf4748d61e DATACASS-782 - After release cleanups. 2020-08-12 12:00:22 +02:00
Mark Paluch
6bb54a5353 DATACASS-782 - Prepare next development iteration. 2020-08-12 12:00:19 +02:00
Mark Paluch
da9af34727 DATACASS-782 - Release version 3.1 M2 (2020.0.0). 2020-08-12 11:52:05 +02:00
Mark Paluch
254111e11e DATACASS-782 - Prepare 3.1 M2 (2020.0.0). 2020-08-12 11:51:40 +02:00
Mark Paluch
45882be347 DATACASS-782 - Updated changelog. 2020-08-12 11:51:27 +02:00
Mark Paluch
2caee34d55 DATACASS-767 - Polishing.
Reformat code. Add since tags. Extend keyspace association to PreparedStatements so that simple CQL statements get associated with the keyspace upon prepare. Remove check if a statement is a bound statement as prepared statements should not fail with applyStatementSettings(…).

Fix keyspace configuration in …Options objects as Insert/Update/Delete options should consider the keyspace when using the builder. Extend tests.

Simplify Cassandra version check. Ensure the discovery session gets closed after its use.

Original pull request: #177.
2020-08-07 15:21:52 +02:00
tomekl007
b79f8a4caa DATACASS-767 - Allow configuring keyspace per Statement.
Original pull request: #177.
2020-08-07 15:21:41 +02:00
Mark Paluch
c068fe2d18 DATACASS-791 - Suppress results for suspended query methods returning kotlin.Unit.
We now discard results for suspended query methods if the return type is kotlin.Unit.

Related ticket: DATACMNS-1779
2020-07-31 11:52:58 +02:00
Mark Paluch
8fae3326f1 DATACASS-772 - Fix link to code of conduct. 2020-07-28 15:38:27 +02:00
Mark Paluch
555b4da821 DATACASS-789 - Migrate tests to JUnit 5.
Use JUnit Jupiter annotations. Replace RunWith with JUnit Extensions. Replace CassandraRule with CassandraExtension to spin up embedded cassandra and to create keyspaces per test container.
2020-07-27 15:32:09 +02:00
Mark Paluch
e9801aaf9a DATACASS-788 - Add support for reactive SpEL context extensions.
We now support context extensions that contribute contextual details using a reactive programming model for evaluation of SpEL expressions in @Query methods.
2020-07-27 10:48:24 +02:00
Mark Paluch
94f26e95a1 DATACASS-775 - Updated changelog. 2020-07-22 10:37:57 +02:00
Mark Paluch
12b789dc7f DATACASS-774 - Updated changelog. 2020-07-22 10:08:42 +02:00
Mark Paluch
834517a015 DATACASS-773 - Updated changelog. 2020-07-22 09:44:27 +02:00