beginnerEntity Lifecycle — Persist, Merge, Detach, Remove & Proxies
What's the difference between the transient and detached entity states?
A transient object was created with `new` and has never been seen by Hibernate at all — it has no persistence identity yet. A detached object WAS previously managed (Hibernate was tracking it, possibly with a real database ID) but its persistence context has since closed, so it's no longer dirty-checked, even though it still holds its data.
This is a Pro chapter
Sign in, then upgrade to Pro or Power to unlock this and the full Spring Ecosystem Mastery library.
What's the difference between the transient and detached entity states?