public class SpringDataEntityFinder extends Object implements EntityFinder
Constructor and Description |
---|
SpringDataEntityFinder(org.springframework.context.ApplicationContext applicationContext) |
Modifier and Type | Method and Description |
---|---|
Object |
find(Long id,
Class<?> entityClass)
Returns the entity on the basis of the entity class and its ID.
|
public SpringDataEntityFinder(org.springframework.context.ApplicationContext applicationContext)
public Object find(Long id, Class<?> entityClass) throws javax.persistence.EntityNotFoundException
find
in interface EntityFinder
id
- the ID of the entityentityClass
- the class of the entityjavax.persistence.EntityNotFoundException
- if the repository or the entity
could not be foundCopyright © 2015–2017 42 BV. All rights reserved.