T
- PK
- public interface DeleteableRepository<T,PK> extends Repository<T,PK>
Modifier and Type | Method and Description |
---|---|
void |
delete(T entity)
removes the specified entity from the repository.
|
boolean |
deleteById(PK entityId)
Removes the entity with the specified ID from the repository.
|
void delete(T entity)
delete
in interface Repository<T,PK>
entity
- UnsuportedOperationException
- if the delete operation makes no
sense for this repositoryboolean deleteById(PK entityId)
entity
- UnsuportedOperationException
- if the delete operation makes no
sense for this repository