Making data persistence easier using Panache API

Hibernate ORM is the standard way to map database structures into Java objects. The main downside of using an ORM tool is that even a simple database structure requires lots of boilerplate code (such as getter and setters methods). Also, you have to include basic query methods in your repository classes, which makes the work quite repetitive. In this section, we will learn how to use Hibernate Panache to simplify and accelerate the development of our applications.

To get started with Hibernate ORM with Panache, let's check the second example for this chapter, which is located in the Chapter05/hibernate-panache folder in this book's GitHub repository. We recommend importing the project into ...

Get Hands-On Cloud-Native Applications with Java and Quarkus 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.