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