public final class IdPropertyResolverUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
getPropertyNameFromAnnotatedMethod(Class<?> entityType,
Class<? extends Serializable> idType,
Method idAnnotatedMethod)
Returns the name of the property as represented by the method given
|
static boolean |
isAnnotated(AnnotatedElement element)
Determines whether or not the given element is annotated with the annotations specified by
getIdAnnotations() |
public static String getPropertyNameFromAnnotatedMethod(Class<?> entityType, Class<? extends Serializable> idType, Method idAnnotatedMethod)
entityType - the type of the entity that the ID is being resolved foridType - the type of the ID expected for the entityidAnnotatedMethod - the method that will return the ID (e.g. getter for the ID property)public static boolean isAnnotated(AnnotatedElement element)
getIdAnnotations()element - the element to be examinedCopyright © 2014–2016. All rights reserved.