public class EntityIdPropertyResolver extends Object implements IdPropertyResolver
The order in which conditions are considered is:
After all the above are considered, if nothing is found, a NoIdPropertyException is thrown to show that the promised ID property was not found on the
entity class.
| Constructor and Description |
|---|
EntityIdPropertyResolver() |
| Modifier and Type | Method and Description |
|---|---|
String |
resolve(Class<?> entityType,
Class<?> idType)
Resolves the name of the ID property.
|
public String resolve(Class<?> entityType, Class<?> idType)
IdPropertyResolverresolve in interface IdPropertyResolverentityType - the type of the entity on which the key is definedidType - the expected type (or supertype) for the ID propertyCopyright © 2014–2021. All rights reserved.