liveBook · Manning

Quarkus-hibernate-orm-panache

As explained in Quarkus in Action

quarkus-hibernate-orm-panache is the Quarkus extension artifact that integrates Panache with blocking Hibernate ORM.

quarkus-hibernate-orm-panache integrates Panache with blocking Hibernate ORM in a Quarkus application. Using the active record pattern requires this extension, a database driver, connection configuration, and entity classes extending PanacheEntity. section 7.1.2

Add the required pieces:

  • Install quarkus-hibernate-orm-panache and a database-specific driver such as quarkus-jdbc-postgresql. section 7.1.2

Reservation lookup

A Reservation entity can expose a business-oriented query method: findByCar(Long carId) returns list("carId", carId), keeping the lookup alongside the entity.

How Quarkus in Action covers it

How deep it goes
Explains extension installation, Maven dependencies, datasource configuration, entity inheritance, and a simple active record query.
Examples
Uses a PostgreSQL reservation service, Reservation entity, date-overlap method, and findByCar query.
What it assumes
Assumes a Quarkus application and database choice while introducing required extensions, connection settings, and entity structure.
What you can do after
Apply Panache by installing extensions, configuring PostgreSQL, creating PanacheEntity classes, and adding entity query methods.
How it connects
Connects Panache with Hibernate ORM, active record pattern, JDBC drivers, PostgreSQL, JPA entities, and database configuration.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Quarkus in Action. The section links point to the parts of the book it draws on.