JPA & Hibernate: Entity Lifecycle Model
Thorben Janssen
0:00 / 0:00
JPA & Hibernate: Entity Lifecycle Model
16 704 просмотра · 6 лет назад
Thorben Janssen
41,8 тыс. подписчиков
16 704 просмотра · 6 лет назад
The entity lifecycle model is one of the core concepts of JPA and all its implementations. Even though it’s not directly visible when working with JPA’s EntityManager, it affects all operations you perform. The different states of the model define how your persistence provider, e.g. Hibernate, handles your entity objects. This includes if it loads it from the database or gets it from an internal cache, if it persists changes and if it removes the entity.
Welcome to this in-depth guide to the entity lifecycle model in JPA & Hibernate. I will explain all the different lifecycle states and the SQL statements they trigger. So be sure to stay till the end.
Links mentioned:
JPA for Beginners online course
https://thorben-janssen.com/jpa-for-b...
What’s the difference between persist, save, merge and update? Which one should you use?
https://thorben-janssen.com/persist-s...
Like my channel? Subscribe!
➜ http://bit.ly/2cUsid8
Join the free Member Library:
https://goo.gl/dtyIIC
Read the accompanying post: https://thorben-janssen.com/entity-li...
Want to connect with me?
Blog: https://thorben-janssen.com/
Twitter: / thjanssen123
Facebook: / thoughtsonjava
#Hibernate #JPA #EntityLifecycleModel