@NoRepositoryBean public interface MapIdCassandraRepository<T> extends CassandraRepository<T,MapId>
MapId
to represent Ids.
This interface uses MapId
for the id type, allowing you to annotate entity fields or properties with
@PrimaryKeyColumn
. Use this interface if you do not require a composite primary key class
and want to specify the Id with MapId
.
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, Object)
to easily construct an
id.MapIdentifiable
, to make it easier and
quicker for entity clients to get the entity's identity.CassandraRepository
,
MapId
,
MapIdentifiable
findAll, findAll, findAllById, insert, insert, saveAll
count, delete, deleteAll, deleteAll, deleteById, existsById, findById, save
Copyright © 2011–2020 Pivotal Software, Inc.. All rights reserved.