CHAPTER 2

image

Integrating and Configuring Hibernate

Integrating Hibernate into a Java application is easy. The designers of Hibernate avoided some of the more common pitfalls and problems with the existing Java persistence solutions, and created a clean but powerful architecture. In practice, this means that you do not have to run Hibernate inside any particular Java EE container or framework.Hibernate only requires Java 6 or later.1

At first, adding Hibernate to your Java project looks intimidating: the distribution includes a large set of libraries. To get your first Hibernate application to work, you have to set up the database references and ...

Get Beginning Hibernate, Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.