Package org.hibernate
Class PropertyValueException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- javax.persistence.PersistenceException
-
- org.hibernate.HibernateException
-
- org.hibernate.PropertyValueException
-
- All Implemented Interfaces:
java.io.Serializable
public class PropertyValueException extends HibernateException
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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PropertyValueException(java.lang.String message, java.lang.String entityName, java.lang.String propertyName)
Constructs a PropertyValueException using the specified information.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getEntityName()
java.lang.String
getMessage()
java.lang.String
getPropertyName()
-
-
-
Constructor Detail
-
PropertyValueException
public PropertyValueException(java.lang.String message, java.lang.String entityName, java.lang.String propertyName)
Constructs a PropertyValueException using the specified information.- Parameters:
message
- A message explaining the exception conditionentityName
- The name of the entity, containing the propertypropertyName
- The name of the property being accessed.
-
-