Skip to main content

Data Access in Spring with JPA2

  • Chapter
  • First Online:
Book cover Pro Spring

Abstract

In the previous chapter, we discussed how to use Hibernate with Spring when implementing data access logic with the ORM approach. We demonstrated how to configure Hibernate’s SessionFactory in Spring’s configuration and how to use the Session interface for various data access operations. However, that is just one way Hibernate can be used. Another way of adopting Hibernate in a Spring application is to use Hibernate as a persistence provider of the standard Java Persistence API (JPA).

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2014 Chris Schaefer

About this chapter

Cite this chapter

Schaefer, C., Ho, C., Harrop, R. (2014). Data Access in Spring with JPA2. In: Pro Spring. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4302-6152-0_8

Download citation

Publish with us

Policies and ethics