T
- The type of the persistent entity.@NoRepositoryBean public interface CassandraRepository<T> extends TypedIdCassandraRepository<T,MapId>
MapId
for the id type, allowing you to annotate entity fields or properties with
@PrimaryKeyColumn
. For a full discussion of this interface, including the use of custom
primary key classes, see TypedIdCassandraRepository
.
Steps to use this interface:
@PrimaryKeyColumn
MapId
(implemented by BasicMapId
).MapId
, you can use the static factory method BasicMapId.id()
(which is
convenient if you import statically) and the builder method MapId.with(String, Serializable)
to easily
construct an id.MapIdentifiable
, to make it easier and
quicker for entity clients to get the entity's identity.TypedIdCassandraRepository
,
MapId
insert
Copyright © 2011–2017 Pivotal Software, Inc.. All rights reserved.