Package org.hibernate
Class TransientObjectException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
jakarta.persistence.PersistenceException
org.hibernate.HibernateException
org.hibernate.TransientObjectException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
TransientPropertyValueException
Thrown if a transient instance of an entity class is passed to
a
Session
method that expects a persistent instance,
or if the state of an entity instance cannot be made persistent
because the instance 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 Summary
ConstructorsConstructorDescriptionTransientObjectException
(String message) Constructs aTransientObjectException
using the supplied message. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
TransientObjectException
Constructs aTransientObjectException
using the supplied message.- Parameters:
message
- The message explaining the exception condition
-