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 5. Hibernate Mappings

In earlier chapters, you have learned how to set up a project from scratch to use with Hibernate. You also learned how Hibernate is configured after it has been installed. After that, the application is ready to use Hibernate for persisting your objects.

Obviously, we are not going to persist all application objects in the database. Only the business entities of the problem domain (such as students and courses in an educational system application) are persistent. The classes that implement these entities are called entity classes. The persistence with Hibernate is called transparent, because the persistent classes never use or call Hibernate APIs and are not influenced by the persistent logic. These classes are merely ...

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