Examples:
Example#1
quarkus-hibernate-orm-quickstart
Description and code: https://jreact.com/index.php/2024/01/08/quarkus-hibernate-orm-quickstart/
This is a minimal CRUD example exposing a couple of endpoints over REST.
This is using:
- RESTEasy to expose the REST endpoints
- Hibernate ORM to perform the CRUD operations on the database
- A PostgreSQL database
- ArC, the CDI inspired dependency injection tool with zero overhead
- The high performance Agroal connection pool
- Infinispan based caching
- All safely coordinated by the Narayana Transaction Manager
Requirements
To compile and run this demo you will need:
- JDK 11+
- GraalVM (see: https://jreact.com/index.php/quarkus-2/native-executable/)
In addition, you will need either a PostgreSQL database, or Docker to run one.
Example#2
quarkus-hibernate-reactive-quickstart
Description and code: https://jreact.com/index.php/2024/01/10/quarkus-hibernate-reactive-quickstart/
This is a minimal CRUD example exposing a couple of endpoints over REST, with a front-end based on AngularJS so you can play with it from your browser.
This is using:
- RESTEasy Reactive to expose the REST endpoints
- Hibernate Reactive to perform the CRUD operations on the database
- A PostgreSQL database
- ArC, the CDI inspired dependency injection tool with zero overhead
Requirements
- JDK 11+
- GraalVM (see: https://jreact.com/index.php/quarkus-2/native-executable/)
In addition, you will need either a PostgreSQL database, or Docker to run one.
