Package org.hibernate

Class 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
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getMessage()  
      java.lang.String getPropertyName()
      Returns the property name.
      java.lang.String getPropertyOwnerEntityName()
      Returns the entity name for entity that owns the association property.
      java.lang.String getTransientEntityName()
      Returns the entity name for the transient entity.
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • TransientPropertyValueException

        public TransientPropertyValueException​(java.lang.String message,
                                               java.lang.String transientEntityName,
                                               java.lang.String propertyOwnerEntityName,
                                               java.lang.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 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:
        getMessage in class java.lang.Throwable