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).
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Author information
Authors and Affiliations
Rights 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
DOI: https://doi.org/10.1007/978-1-4302-6152-0_8
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4302-6151-3
Online ISBN: 978-1-4302-6152-0
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)