O'Reilly logo

Spring Persistence with Hibernate by Ahmad Seddighi

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 8. Hibernate Persistence Behavior

After you've configured Hibernate, it is ready to be used to persist application objects. An API, called the Session API, is responsible for persistence in Hibernate. This chapter discusses the life cycle of persistent objects in the application's lifetime: the states persistent objects go through with respect to persistence. Then, we'll delve into basic persistence operations, which trigger changes to the objects' state provided by the Session API. Finally, we'll look at some hot topics in object persistence, mainly, cascading operation and lazy loading.

The life cycle of persistent objects

Persistent classes follow the simple POJO rules without calling any Hibernate APIs. In other words, no persistent ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required