public interface CrudRepository<T extends HasIdentity>
Modifier and Type | Method and Description |
---|---|
void |
create(Identity identityOfEntity) |
void |
delete(Identity identityOfEntity) |
Iterable<T> |
find(Predicate<Composite> specification) |
Iterable<T> |
findAll() |
T |
get(Identity identityOfEntity) |
T |
toValue(T entity) |
void |
update(T newStateAsValue) |
@UnitOfWorkPropagation void create(Identity identityOfEntity)
@UnitOfWorkPropagation T get(Identity identityOfEntity)
@UnitOfWorkPropagation void update(T newStateAsValue)
@UnitOfWorkPropagation void delete(Identity identityOfEntity)
@UnitOfWorkPropagation Iterable<T> findAll()
@UnitOfWorkPropagation Iterable<T> find(Predicate<Composite> specification)