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.
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:
Rename CassandraRepository to MapIdCassandraRepository
Rename TypedIdCassandraRepository to CassandraRepository
Introduce TypedIdCassandraRepository extending CassandraRepository as deprecated type to ease migration
Mark Paluch opened DATACASS-452 and commented
TypedIdCassandraRepository
andCassandraRepository
are both repository interfaces declaring CRUD operations. The key difference to both repositories is thatTypedIdCassandraRepository
is the store-specific interface (compares toJpaRepository
,MongoRepository
) andCassandraRepository
is typed withMapId
as Id type.TypedIdCassandraRepository
is a name that lets one assume it's a specialized form of a Cassandra repository whereasCassandraRepository
is the more specific interface.We should turn the idea around and make
CassandraRepository
the basic, store-specific interface with the following steps:CassandraRepository
toMapIdCassandraRepository
TypedIdCassandraRepository
toCassandraRepository
TypedIdCassandraRepository
extendingCassandraRepository
as deprecated type to ease migrationReferenced from: commits https://github.com/spring-projects/spring-data-cassandra/commit/caf4160604c04d094eb063c710d1000ccf43755b