add a diagram of entity lifecycle to new doc

This commit is contained in:
Gavin 2023-05-16 14:15:49 +02:00 committed by Christian Beikov
parent 0cb64f6f42
commit 23070b2c8b
2 changed files with 2 additions and 0 deletions

View File

@ -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