Package org.hibernate

Class PropertyValueException

  • All Implemented Interfaces:
    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 @Basic(optional=false) is null, or
    • an association references an unsaved transient instance.
    See Also:
    Serialized Form
    • Constructor Detail

      • PropertyValueException

        public PropertyValueException​(String message,
                                      String entityName,
                                      String propertyName)
        Constructs a PropertyValueException using the specified information.
        Parameters:
        message - A message explaining the exception condition
        entityName - The name of the entity, containing the property
        propertyName - The name of the property being accessed.