Master Java persistence using the industry-leading tools Spring Data and Hibernate.
In Java Persistence with Spring Data and Hibernate you will learn:
Mapping persistent classes, value types, and inheritance
Mapping collections and entity associations
Processing transactions with Spring Data and Hibernate
Creating fetch plans, strategies, and profiles
Filtering data
Building Spring Data REST projects
Using Java persistence with non-relational databases
Querying JPA with QueryDSL
Testing Java persistence applications
Java Persistence with Spring Data and Hibernate teaches you the ins-and-outs of Java persistence with hands-on examples using Spring Data, JPA, and Hibernate. The book carefully analyzes the capabilities of the major Java persistence tools, and guides you through the most common use cases. By comparing and contrasting the alternatives, you’ll find it easy to choose the right tool choice for your applications. You’ll learn how to make and utilize mapping strategies, about the different approach to transactions for both Hibernate and Spring Data, and even how to efficiently test Java persistence applications. The practical techniques are demonstrated with both relational and non-relational databases.
About the Technology Effectively managing application data is essential for any serious application. Spring Data and Hibernate bridge the gap between object-oriented code and relational data stores, radically simplifying Java persistence. By implementing the Java Persistence API (JPA) standard, these powerful tools help you avoid common bugs related to state and application data storage.
About the Book Java Persistence with Spring Data and Hibernate explores Java persistence using industry-standard tools. Hands-on examples introduce object-relational mapping and guide you through different mapping strategies to suit your needs. Covering transactions, persistent application testing, and non-relational databases, this book is your go-to resource for managing data in Java applications.
What's Inside
Mapping persistent classes, value types, and inheritance
Creating fetch plans, strategies, and profiles
Building Spring Data REST projects
Querying JPA with QueryDSL
About the Reader For intermediate Java programmers.
About the Author Cătălin Tudose has more than 20 years of experience in the Java community. Christian Bauer, Gavin King, and Gary Gregory are the authors of Java Persistence with Hibernate, Second Edition, on which this book is based.
Quotes Everything you need to work effectively with Hibernate and Spring Data. A must-read for all Java developers! - From the Foreword by Dmitry Aleksandrov, Oracle Software Developer and Java Champion
It is an honor to recommend this book. I hope that it will assist you in producing performant, secure, testable software that others may rely on with confidence. - From the Foreword by Mohamed Taman, Chief Solutions Architect at Nortal and Java Champion
A pedagogical gem. Engaging and pragmatic. It’s like holding a conversation with a Hibernate expert. - Nathan B Crocker, Galaxy Digita
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.
O’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
I wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
I’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
I'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.