Package org.hibernate

Class TransientPropertyValueException

  • All Implemented Interfaces:
    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 Detail

      • 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 Detail

      • 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.