Challenge: Quarkus Data
Challenge yourself on using databases with Quarkus.
Problem statement
Let’s consider a library management application that will keep track of two different entities:
- Book entity: We’ll keep this in a MongoDB database.
- Customer entity: We’ll save this in an SQL database (we use H2 for simplicity in the code).
The goal is to create an API to add new customers and books that can mark a book as rented by a customer. For the sake of simplicity, a book can only be rented by one customer.
Get hands-on with 1300+ tech skills courses.