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

Summary

In this chapter, we discussed Hibernate configuration settings and how Hibernate is configured. Hibernate lets us use a container-managed data source or Hibernate-managed connections. In either case, you need to specify the database username, password, and dialect. Additionally, when you use a container-managed data source, you must also specify the JNDI name of the data source. When you use a Hibernate-managed data source, you need to indicate the database URL and the classname of the database driver. Although this is the basic configuration information for Hibernate, Hibernate allows more configuration settings, making it an appropriate solution for any application deployed in any environment with any persistence requirement.

You have ...

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