spring-projects / spring-data-cassandra

Provides support to increase developer productivity in Java when using Apache Cassandra. Uses familiar Spring concepts such as a template classes for core API usage and lightweight repository style data access.
https://spring.io/projects/spring-data-cassandra/
Apache License 2.0
379 stars 311 forks source link

Better names for CassandraRepository [DATACASS-452] #624

Closed spring-projects-issues closed 7 years ago

spring-projects-issues commented 7 years ago

Mark Paluch opened DATACASS-452 and commented

TypedIdCassandraRepository and CassandraRepository are both repository interfaces declaring CRUD operations. The key difference to both repositories is that TypedIdCassandraRepository is the store-specific interface (compares to JpaRepository, MongoRepository) and CassandraRepository is typed with MapId as Id type.

TypedIdCassandraRepository is a name that lets one assume it's a specialized form of a Cassandra repository whereas CassandraRepository is the more specific interface.

We should turn the idea around and make CassandraRepository the basic, store-specific interface with the following steps:


Referenced from: commits https://github.com/spring-projects/spring-data-cassandra/commit/caf4160604c04d094eb063c710d1000ccf43755b

spring-projects-issues commented 7 years ago

John Blum commented

Yeah, this sounds good Mark Paluch