Package org.hibernate
Class PropertyValueException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.hibernate.HibernateException
org.hibernate.PropertyValueException
- All Implemented Interfaces:
Serializable
Thrown when the (illegal) value of a property can not be persisted.
There are two main causes:
- a property declared not-null="true" is null
- an association references an unsaved transient instance
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringbuildPropertyPath(String parent, String child) Return a well formed property path.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
PropertyValueException
-
-
Method Details
-
getEntityName
-
getPropertyName
-
getMessage
- Overrides:
getMessagein classThrowable
-
buildPropertyPath
Return a well formed property path. Basicaly, it will return parent.child- Parameters:
parent- parent in pathchild- child in path- Returns:
- parent-child path
-