© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2023
P. Späth et al.Pro Spring 6 with Kotlinhttps://doi.org/10.1007/978-1-4842-9557-1_8

8. Spring with JPA

Peter Späth1  , Iuliana Cosmina2, Rob Harrop3 and Chris Schaefer4
(1)
Leipzig, Sachsen, Germany
(2)
Edinburgh, UK
(3)
Reddish, UK
(4)
Venice, FL, USA
 

In Chapter 7, we discussed how to use Hibernate with Spring when implementing data access logic with the ORM approach. We demonstrated how to configure Hibernates 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 ...

Get Pro Spring 6 with Kotlin: An In-depth Guide to Using Kotlin APIs in Spring Framework 6 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.