T - ORM entitypublic interface EntityRepository<T>
| Modifier and Type | Method and Description |
|---|---|
void |
create(T entity)
Creates entity in database
|
void |
delete(T entity)
Deletes the entity from database
|
T |
getById(long id)
Retrieves entity by id
|
void |
update(T entity)
Updates entity in database
|
T getById(long id)
id - idvoid create(T entity) throws EntityValidationException
entity - entityEntityValidationException - on violationvoid update(T entity) throws EntityValidationException
entity - entityEntityValidationException - on violationvoid delete(T entity) throws EntityValidationException
entity - entityEntityValidationException - on violationCopyright © 2017 Pivotal Software, Inc.. All rights reserved.