程序包 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

        public TransientPropertyValueException​(String message,
                                               String transientEntityName,
                                               String propertyOwnerEntityName,
                                               String propertyName)
        Constructs a TransientPropertyValueException instance.
        参数:
        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
    • 方法详细资料

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