Package org.hibernate
Class 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
-
- All Implemented Interfaces:
java.io.Serializable
public class TransientPropertyValueException extends TransientObjectException
Thrown when a property cannot be persisted because it is an association with a transient unsaved entity instance.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TransientPropertyValueException(java.lang.String message, java.lang.String transientEntityName, java.lang.String propertyOwnerEntityName, java.lang.String propertyName)Constructs aTransientPropertyValueExceptioninstance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetMessage()java.lang.StringgetPropertyName()Returns the property name.java.lang.StringgetPropertyOwnerEntityName()Returns the entity name for entity that owns the association property.java.lang.StringgetTransientEntityName()Returns the entity name for the transient entity.
-
-
-
Constructor Detail
-
TransientPropertyValueException
public TransientPropertyValueException(java.lang.String message, java.lang.String transientEntityName, java.lang.String propertyOwnerEntityName, java.lang.String propertyName)Constructs aTransientPropertyValueExceptioninstance.- Parameters:
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
-
-
Method Detail
-
getTransientEntityName
public java.lang.String getTransientEntityName()
Returns the entity name for the transient entity.- Returns:
- the entity name for the transient entity.
-
getPropertyOwnerEntityName
public java.lang.String getPropertyOwnerEntityName()
Returns the entity name for entity that owns the association property.- Returns:
- the entity name for entity that owns the association property
-
getPropertyName
public java.lang.String getPropertyName()
Returns the property name.- Returns:
- the property name.
-
getMessage
public java.lang.String getMessage()
- Overrides:
getMessagein classjava.lang.Throwable
-
-