程序包 org.hibernate

类 PropertyValueException

  • 所有已实现的接口:
    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
    作者:
    Gavin King
    另请参阅:
    序列化表格
    • 构造器详细资料

      • PropertyValueException

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