The JPA Entity Lifecycle
The JPA entity lifecycle: the four states an entity can be in, the operations that move it, and when its SQL runs.
JPA entity lifecycle: the four states an entity can be in, and the EntityManager operations that move it between them. The state decides whether changing a field does anything at all, which is why a change can be saved without save() in one place and ignored in another. It covers the four states, one entity traced through them, when persist() really runs its INSERT, changes to a detached entity, and refresh() compared with clear(). It leaves out cascades and entity listeners.
Contents
7 cardsnot started