public interface EntityFinder
| Modifier and Type | Method and Description |
|---|---|
<T> T |
find(Long id,
Class<T> entityClass)
Returns the entity on the basis of the entity class and its ID.
|
<T> T |
findAndDetach(Long id,
Class<T> entityClass)
Returns the entity on the basis of the entity class and its ID bypassing the
Hibernate cache
|
<T> T find(Long id, Class<T> entityClass) throws javax.persistence.EntityNotFoundException
entityClass - the class of the entityid - the ID of the entityjavax.persistence.EntityNotFoundException - if the repository or the entity
could not be found<T> T findAndDetach(Long id, Class<T> entityClass) throws javax.persistence.EntityNotFoundException
entityClass - the class of the entityid - the ID of the entityjavax.persistence.EntityNotFoundException - if the repository or the entity
could not be foundCopyright © 2015–2020 42 BV. All rights reserved.