Top Description Fields Constructors Methods
org.hibernate

public Class TransientPropertyValueException

extends TransientObjectException
Class Inheritance
Imports
org.hibernate.internal.util.StringHelper

Thrown when a property cannot be persisted because it is an association with a transient unsaved entity instance.
Author
Gail Badner

Field Summary

Modifier and TypeField and Description
private final String
private final String
private final String

Constructor Summary

AccessConstructor and Description
public
TransientPropertyValueException(String
- the exception message;
message
,
String
- the entity name for the transient entity
transientEntityName
,
String
- the entity name for entity that owns the association property.
propertyOwnerEntityName
,
String
- the property name
propertyName
)

Constructs a TransientPropertyValueException instance.

Method Summary

Modifier and TypeMethod and Description
public String
getMessage()

Overrides java.lang.Throwable.getMessage.

Returns the detail message string of this throwable.
public String

Returns:

the property name.
getPropertyName
()

Returns the property name.

public String

Returns:

the entity name for entity that owns the association property
getPropertyOwnerEntityName
()

Returns the entity name for entity that owns the association property.

public String

Returns:

the entity name for the transient entity.
getTransientEntityName
()

Returns the entity name for the transient entity.

Field Detail

propertyNameback to summary
private final String propertyName
propertyOwnerEntityNameback to summary
private final String propertyOwnerEntityName
transientEntityNameback to summary
private final String transientEntityName

Constructor Detail

TransientPropertyValueExceptionback to summary
public TransientPropertyValueException(String message, String transientEntityName, String propertyOwnerEntityName, String propertyName)

Constructs a TransientPropertyValueException instance.

Parameters
message:String

- the exception message;

transientEntityName:String

- the entity name for the transient entity

propertyOwnerEntityName:String

- the entity name for entity that owns the association property.

propertyName:String

- the property name

Method Detail

getMessageback to summary
public String getMessage()

Overrides java.lang.Throwable.getMessage.

Doc from java.lang.Throwable.getMessage.

Returns the detail message string of this throwable.

Returns:String

the detail message string of this Throwable instance (which may be null).

Annotations
@Override
getPropertyNameback to summary
public String getPropertyName()

Returns the property name.

Returns:String

the property name.

getPropertyOwnerEntityNameback to summary
public String getPropertyOwnerEntityName()

Returns the entity name for entity that owns the association property.

Returns:String

the entity name for entity that owns the association property

getTransientEntityNameback to summary
public String getTransientEntityName()

Returns the entity name for the transient entity.

Returns:String

the entity name for the transient entity.