add a diagram of entity lifecycle to new doc
This commit is contained in:
parent
0cb64f6f42
commit
23070b2c8b
|
@ -48,6 +48,8 @@ Thus, an entity instance may be in one of three states with respect to a given p
|
|||
2. _persistent_ — currently associated with the persistence context, or
|
||||
3. _detached_ — previously persistent in another session, but not currently associated with _this_ persistence context.
|
||||
|
||||
image:images/entity-lifecyle.png[width=800,align="center"]
|
||||
|
||||
At any given moment, an instance may be associated with at most one persistence context.
|
||||
|
||||
The lifetime of a persistence context usually corresponds to the lifetime of a transaction, though it's possible to have a persistence context that spans several database-level transactions that form a single logical unit of work.
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 116 KiB |
Loading…
Reference in New Issue