Commit Graph

322 Commits

Author SHA1 Message Date
Mark Paluch
cfc3148dbd DATACASS-707 - Updated changelog. 2020-01-15 12:51:13 +01:00
Mark Paluch
a16e8fb158 DATACASS-706 - Updated changelog. 2020-01-15 10:36:36 +01:00
Mark Paluch
9b8fbe31fa DATACASS-713 - Rename Session and SessionFactory bean names with cassandra prefix.
We now register the Session under cassandraSession and SessionFactory with cassandraSessionFactory as bean name. ReactiveSession and ReactiveSessionFactory beans are named reactiveCassandraSession respective reactiveCassandraSessionFactory. Beans are consistently named using Java and XML-based configuration avoiding potential clashes with other data integrations that use Session or SessionFactory beans.
2020-01-14 10:26:05 +01:00
Mark Paluch
ee09353cb3 DATACASS-656 - Polishing.
Pick up compression type and session name properties along with SessionBuilderConfigurer.

Include LocalDataCenter in migration guide.
2020-01-14 10:08:58 +01:00
Mark Paluch
343983847d DATACASS-656 - Polishing.
Fix references to CqlSession. Typos.

Original pull request: #167.
2020-01-08 12:11:14 +01:00
Mark Paluch
4098040e71 DATACASS-656 - Update documentation.
Original pull request: #167.
2020-01-08 12:11:14 +01:00
Mark Paluch
5ae8e4c2aa DATACASS-656 - Polishing.
Update license header years to 2020.

Original pull request: #167.
2020-01-08 12:11:14 +01:00
Mark Paluch
2dd83238af DATACASS-705 - Introduce FactoryBean for SessionFactory.
We now provide SessionFactoryFactoryBean as factory bean and initializer for a SessionFactory.

<cassandra:session-factory>
	<cassandra:script
			location="my/scripts/schema.cql"/>
</cassandra:session-factory>

Original pull request: #167.
2020-01-08 11:46:21 +01:00
Mark Paluch
efb5b4b5d4 DATACASS-705 - Polishing.
Use consistently -ref.

Original pull request: #167.
2020-01-08 11:46:17 +01:00
Mark Paluch
119c0b499a DATACASS-703 - Move Keyspace initialization from CassandraClusterFactoryBean to CassandraCqlSessionFactoryBean.
Original pull request: #167.
2020-01-08 11:46:14 +01:00
Jens Schauder
7bd67eecfd DATACASS-702 - Updated changelog. 2019-12-04 14:32:42 +01:00
Jens Schauder
bfc48fedd3 DATACASS-701 - Updated changelog. 2019-12-04 12:09:44 +01:00
Mark Paluch
5aa269ac58 DATACASS-698 - Updated changelog. 2019-11-18 12:43:25 +01:00
Mark Paluch
3e7e062dab DATACASS-697 - Updated changelog. 2019-11-18 12:16:26 +01:00
Christoph Strobl
daddb04d38 DATACASS-691 - Updated changelog. 2019-11-04 15:39:53 +01:00
Christoph Strobl
0051a2f14d DATACASS-690 - Updated changelog. 2019-11-04 10:34:49 +01:00
Mark Paluch
1a66333a05 DATACASS-682 - Prepare 2.2 GA (Moore). 2019-09-30 15:50:43 +02:00
Mark Paluch
8d5489e048 DATACASS-682 - Updated changelog. 2019-09-30 15:50:38 +02:00
Mark Paluch
6fcea63902 DATACASS-681 - Updated changelog. 2019-09-30 11:16:16 +02:00
Mark Paluch
75f4d76324 DATACASS-688 - Add documentation for Kotlin support. 2019-09-27 12:12:22 +02:00
Mark Paluch
b5c34d8d89 DATACASS-683 - Prepare 2.2 RC3 (Moore). 2019-09-06 10:10:12 +02:00
Mark Paluch
f7c10e80a9 DATACASS-683 - Updated changelog. 2019-09-06 10:10:03 +02:00
Mark Paluch
ba822d1b05 DATACASS-670 - Prepare 2.2 RC2 (Moore). 2019-08-05 15:35:05 +02:00
Mark Paluch
992816c763 DATACASS-670 - Updated changelog. 2019-08-05 15:34:58 +02:00
Mark Paluch
25d8a3e1c3 DATACASS-669 - Updated changelog. 2019-08-05 11:34:28 +02:00
Mark Paluch
45662fa361 DATACASS-658 - Updated changelog. 2019-08-05 11:08:59 +02:00
Mark Paluch
ca1e57d0c3 DATACASS-676 - Fix custom conversion registration example. 2019-07-26 11:42:42 +02:00
Mark Paluch
b3a63f6a67 DATACASS-4 - Polishing.
Fix anchor for entity callbacks.
2019-07-01 15:17:59 +02:00
Mark Paluch
993a82f088 DATACASS-672 - Polishing.
Reflect dropped Serializable requirement on primary key classes in documentation.
2019-07-01 12:30:46 +02:00
Mark Paluch
f8d87e24bd DATACASS-611 - Add query derivation for delete queries.
We now support query derivation for delete queries using delete…By in method declarations.

interface PersonRepository extends Repository<Person, String> {

  void deleteWithoutResultByLastname(String lastname);

  boolean deleteByLastname(String lastname);
}
2019-06-18 17:20:41 +02:00
Mark Paluch
4f93fb830b DATACASS-454 - Extend @Query to declare idempotent CQL queries.
String-based queries can now be marked as idempotent. Also, SELECT queries defined via @Query are also considered idempotent to make these retryable.

interface PersonRepository extends Repository<Person, String> {

    @Query("SELECT * FROM person WHERE lastname = ?0;") // idempotent by default
    Person findByLastname(String lastname);

    @Query(value = "UPDATE person SET lastname = ?0", idempotent = Query.Idempotency.IDEMPOTENT)
    void updatePerson(String name);

}
2019-06-18 15:03:24 +02:00
Christoph Strobl
eca9a2e5c4 DATACASS-649 - Prepare 2.2 RC1 (Moore). 2019-06-14 14:43:17 +02:00
Christoph Strobl
4d787f5dd2 DATACASS-649 - Updated changelog. 2019-06-14 14:43:09 +02:00
Christoph Strobl
7d97ba7d9b DATACASS-657 - Updated changelog. 2019-06-14 13:27:14 +02:00
Mark Paluch
86c47e80f8 DATACASS-4 - Add support for auditing.
We now support auditing using Spring's IsNewAwareAuditingHandler. Entities that are saved are processed before persisting these through auditing EntityCallbacks.

@Table
class Entity {

  @Id Long id;

  @CreatedDate
  LocalDateTime created;

  @LastModifiedDate
  LocalDateTime modified;

   // …
}

@EnableCassandraAuditing
@Configuration
class MyConfiguration extends AbstractReactiveCassandraConfiguration {

 // …
}
2019-06-07 16:00:54 +02:00
Chaouki Dhib
664ba968f0 DATACASS-660 - Fix typo regarding the usage of Query objects.
Original pull request: #161.
2019-06-03 13:57:43 +02:00
Chaouki Dhib
249aa5e304 DATACASS-660 - Fix typo regarding the usage of Query objects.
Original pull request: #160.
2019-05-29 14:21:31 +02:00
Mark Paluch
64e722b7d1 DATACASS-654 - Updated changelog. 2019-05-13 18:19:06 +02:00
Mark Paluch
272db101fa DATACASS-653 - Updated changelog. 2019-05-13 14:59:26 +02:00
Mark Paluch
f4e5860907 DATACASS-650 - Prepare 2.2 M4 (Moore). 2019-05-13 11:59:04 +02:00
Mark Paluch
ff3c95a9cc DATACASS-650 - Updated changelog. 2019-05-13 11:58:55 +02:00
Oliver Drotbohm
af60d1518d DATACASS-644 - Updated changelog. 2019-05-10 14:18:12 +02:00
Oliver Drotbohm
c162f2ecd3 DATACASS-646 - Updated changelog. 2019-05-10 12:57:23 +02:00
Christoph Strobl
283d3d2355 DATACASS-635 - Prepare 2.2 M3 (Moore). 2019-04-11 11:23:56 +02:00
Christoph Strobl
f286ef9c46 DATACASS-635 - Updated changelog. 2019-04-11 11:23:50 +02:00
Oliver Drotbohm
021503677d DATACASS-626 - Updated changelog. 2019-04-01 20:56:25 +02:00
Oliver Drotbohm
5e1ce2467c DATACASS-621 - Updated changelog. 2019-04-01 19:36:56 +02:00
Oliver Drotbohm
4622eef441 DATACASS-643 - Updated changelog. 2019-04-01 18:52:15 +02:00
Oliver Drotbohm
865291bdf0 DATACASS-620 - Updated changelog. 2019-04-01 18:49:24 +02:00
Mark Paluch
7934da03fb DATACASS-641 - Fix documentation for java.util.UUID type mapping.
Since 2.0, java.util.UUID maps by default to uuid instead of timeuuid. Documentation now reflects this change.
2019-03-27 10:23:19 +01:00