K
- key classE
- entity classpublic interface IGenericHome<K,E>
Modifier and Type | Method and Description |
---|---|
void |
create(E entity)
Creates the entity
|
List<E> |
findAll()
Finds all
|
E |
findByPrimaryKey(K pKey)
Loads an entity by its key
|
void |
remove(K key)
Removes the entity if exists
|
void |
update(E entity)
Merges the entity
|
void create(E entity)
entity
- objectvoid update(E entity)
entity
- objectvoid remove(K key)
key
- The entity key@Transactional(readOnly=true) E findByPrimaryKey(K pKey)
pKey
- primary keynull
otherwise.Copyright © 2020 City of Paris. All rights reserved.