File tree Expand file tree Collapse file tree 2 files changed +26
-4
lines changed
hibernate-core/src/main/java/org/hibernate Expand file tree Collapse file tree 2 files changed +26
-4
lines changed Original file line number Diff line number Diff line change 5
5
package org .hibernate ;
6
6
7
7
/**
8
- * Thrown when the user passes a transient instance to a {@link Session}
9
- * method that expects a persistent instance.
8
+ * Thrown if a transient instance of an entity class is passed to
9
+ * a {@link Session} method that expects a persistent instance,
10
+ * or if the state of an entity instance cannot be made persistent
11
+ * because the instance holds a reference to a transient entity.
12
+ * <p>
13
+ * An entity is considered <em>transient</em> if it is:
14
+ * <ul>
15
+ * <li>a newly-instantiated instance of an entity class which has
16
+ * never been {@linkplain Session#persist made persistent} in
17
+ * the database, or
18
+ * <li>an entity instance previously associated with a persistence
19
+ * context which has been {@linkplain Session#remove removed}
20
+ * from the database.
21
+ * </ul>
10
22
*
11
23
* @author Gavin King
12
24
*/
Original file line number Diff line number Diff line change 7
7
import static org .hibernate .internal .util .StringHelper .qualify ;
8
8
9
9
/**
10
- * Thrown when a property cannot be persisted because it is an association
11
- * with a transient unsaved entity instance.
10
+ * Thrown when the state of an entity cannot be made persistent
11
+ * because the entity holds a reference to a transient entity.
12
+ * <p>
13
+ * An entity is considered <em>transient</em> if it is:
14
+ * <ul>
15
+ * <li>a newly-instantiated instance of an entity class which has
16
+ * never been {@linkplain Session#persist made persistent} in
17
+ * the database, or
18
+ * <li>an entity instance previously associated with a persistence
19
+ * context which has been {@linkplain Session#remove removed}
20
+ * from the database.
21
+ * </ul>
12
22
*
13
23
* @author Gail Badner
14
24
*/
You can’t perform that action at this time.
0 commit comments