Skip to content
Ravnary
A Knowledge Platform
Categories
Learn
Cheatsheets
Paths
Favourites
Review
Community
Colour theme
Light
Dark
System
Learn
Spring Boot
Data Access
The JPA Entity Lifecycle
Quiz
Q 01
/ 05
Advanced
Question 1 of 5. 0 correct, 0 incorrect.
An entity is detached, then one of its fields is changed directly, then the surrounding transaction commits. What happens to that change?
Committing throws an exception, because the entity is out of step with the database
Nothing; the database is never touched
It is saved, because any change to a loaded entity is written automatically
Check answer
Home
Learn
Paths
Saved
Community