Package org.hibernate

Class TransientPropertyValueException

All Implemented Interfaces:
Serializable

public class TransientPropertyValueException extends TransientObjectException
Thrown when the state of an entity cannot be made persistent because the entity holds a reference to a transient entity.

An entity is considered transient if it is:

  • a newly-instantiated instance of an entity class which has never been made persistent in the database, or
  • an entity instance previously associated with a persistence context which has been removed from the database.
See Also:
  • Constructor Details

    • TransientPropertyValueException

      public TransientPropertyValueException(String message, String transientEntityName, String propertyOwnerEntityName, String propertyName)
      Constructs a TransientPropertyValueException instance.
      Parameters:
      message - - the exception message;
      transientEntityName - - the entity name for the transient entity
      propertyOwnerEntityName - - the entity name for entity that owns the association property.
      propertyName - - the property name
  • Method Details

    • getTransientEntityName

      public String getTransientEntityName()
      Returns the entity name for the transient entity.
      Returns:
      the entity name for the transient entity.
    • getPropertyOwnerEntityName

      public 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 String getPropertyName()
      Returns the property name.
      Returns:
      the property name.
    • getMessage

      public String getMessage()
      Overrides:
      getMessage in class Throwable