程序包 org.hibernate
类 TransientPropertyValueException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- javax.persistence.PersistenceException
-
- org.hibernate.HibernateException
-
- org.hibernate.TransientObjectException
-
- org.hibernate.TransientPropertyValueException
-
- 所有已实现的接口:
Serializable
public class TransientPropertyValueException extends TransientObjectException
Thrown when a property cannot be persisted because it is an association with a transient unsaved entity instance.- 作者:
- Gail Badner
- 另请参阅:
- 序列化表格
-
-
构造器概要
构造器 构造器 说明 TransientPropertyValueException(String message, String transientEntityName, String propertyOwnerEntityName, String propertyName)Constructs aTransientPropertyValueExceptioninstance.
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 StringgetMessage()StringgetPropertyName()Returns the property name.StringgetPropertyOwnerEntityName()Returns the entity name for entity that owns the association property.StringgetTransientEntityName()Returns the entity name for the transient entity.
-
-
-
构造器详细资料
-
TransientPropertyValueException
public TransientPropertyValueException(String message, String transientEntityName, String propertyOwnerEntityName, String propertyName)
Constructs aTransientPropertyValueExceptioninstance.- 参数:
message- - the exception message;transientEntityName- - the entity name for the transient entitypropertyOwnerEntityName- - the entity name for entity that owns the association property.propertyName- - the property name
-
-
方法详细资料
-
getTransientEntityName
public String getTransientEntityName()
Returns the entity name for the transient entity.- 返回:
- the entity name for the transient entity.
-
getPropertyOwnerEntityName
public String getPropertyOwnerEntityName()
Returns the entity name for entity that owns the association property.- 返回:
- the entity name for entity that owns the association property
-
getPropertyName
public String getPropertyName()
Returns the property name.- 返回:
- the property name.
-
getMessage
public String getMessage()
- 覆盖:
getMessage在类中Throwable
-
-