|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vaadin.addon.jpacontainer.util.HibernateUtil
public class HibernateUtil
Utility methods for finding Hibernate specific information about entities without forcing a compile-time dependency on the Hibernate framework.
| Constructor Summary | |
|---|---|
HibernateUtil()
|
|
| Method Summary | |
|---|---|
static String |
getMappedByProperty(Object entity,
String propertyName)
Finds the property's "mappedBy" value. |
static boolean |
isLazyInitializationException(RuntimeException e)
Reflectively finds out if the passed in exception is a Hibernate LazyInitializationException. |
static boolean |
isUninitializedAndUnattachedProxy(Object obj)
Reflectively finds out whether an object is an uninitialized Hibernate proxy and unattached. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HibernateUtil()
| Method Detail |
|---|
public static boolean isLazyInitializationException(RuntimeException e)
e -
public static boolean isUninitializedAndUnattachedProxy(Object obj)
obj -
public static String getMappedByProperty(Object entity,
String propertyName)
entity - the entity containing the propertypropertyName - the name of the property to find the "mappedBy" value for.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||