CosmosRepository<T,ID> Interface
Definition
Extension of PagingAndSortingRepository to provide additional methods to retrieve entities using the pagination and sorting abstraction.
public interface CosmosRepository<T,ID> extends PagingAndSortingRepository<T,ID>
Type Parameters
- T
- ID
- Implements
-
org.springframework.data.repository.PagingAndSortingRepository<T,ID>
Methods
deleteById(ID id, PartitionKey partitionKey) |
Deletes an entity by its id and partition key. |
findAll(PartitionKey partitionKey) |
Returns list of items in a specific partition |
findById(ID id, PartitionKey partitionKey) |
Retrieves an entity by its id. |