程序包 org.hibernate
类 PropertyValueException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- javax.persistence.PersistenceException
-
- org.hibernate.HibernateException
-
- 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(String message, String entityName, String propertyName)Constructs a PropertyValueException using the specified information.
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 StringgetEntityName()StringgetMessage()StringgetPropertyName()
-
-
-
构造器详细资料
-
PropertyValueException
public PropertyValueException(String message, String entityName, String propertyName)
Constructs a PropertyValueException using the specified information.- 参数:
message- A message explaining the exception conditionentityName- The name of the entity, containing the propertypropertyName- The name of the property being accessed.
-
-
方法详细资料
-
getEntityName
public String getEntityName()
-
getPropertyName
public String getPropertyName()
-
getMessage
public String getMessage()
- 覆盖:
getMessage在类中Throwable
-
-