public interface MetadataUtil
| Modifier and Type | Method and Description |
|---|---|
Metadata |
get(Class<?> klass)
Get the Metadata for an entity class.
|
Metadata |
get(Class<?> rootEntityClass,
String propertyPath)
Get the Metadata for a property of an entity class.
|
Serializable |
getId(Object object)
Get the value of the ID property of an entity.
|
<T> Class<T> |
getUnproxiedClass(Class<?> klass)
Return the actual entity class registered with the persistence provider.
|
<T> Class<T> |
getUnproxiedClass(Object entity)
Return the actual entity class registered with the persistence provider.
|
boolean |
isId(Class<?> rootClass,
String propertyPath)
Return true if the property at the given property path is the id of some
entity.
|
Serializable getId(Object object)
boolean isId(Class<?> rootClass, String propertyPath)
Metadata get(Class<?> klass) throws IllegalArgumentException
IllegalArgumentException - if the class is not a Hibernate entity.Metadata get(Class<?> rootEntityClass, String propertyPath) throws IllegalArgumentException
IllegalArgumentException - if the root class is not a Hibernate entity.IllegalArgumentException - if the class does not have the given property.<T> Class<T> getUnproxiedClass(Class<?> klass)
<T> Class<T> getUnproxiedClass(Object entity)
Copyright © 2008-2013. All Rights Reserved.