14 Integrating JPA and Hibernate with Spring

This chapter covers

  • Introducing Spring Framework and dependency injection
  • Examining the data access object (DAO) design pattern
  • Creating and generifying a Spring JPA application using the DAO design pattern
  • Creating and generifying a Spring Hibernate application using the DAO design pattern

In this chapter, we’ll analyze a few different possibilities for integrating Spring and Hibernate. Spring is a lightweight but also flexible and universal Java framework. It is open source, and it can be used at the level of any layer in a Java application. We’ll investigate the principles behind the Spring Framework (dependency injection, also known as inversion of control), and we’ll use Spring together with ...

Get Java Persistence with Spring Data and Hibernate 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.