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

Hibernate declarative configuration

As with many other frameworks, you must configure Hibernate before you can use it. The configuration process consists of two parts:

  • Object Mappings: Determine the object mappings that define how persistent objects are mapped to their respective database tables.
  • Database-Relevant Information: Specify database-relevant information to tell Hibernate how to connect to the database and perform persistence operations. The basic configuration information is database driver, URL, username, and password. However, configuration options are not limited to these. Other significant configuration settings include using a container-managed versus a non-container-managed data source, cache configuration, transaction settings, ...

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