Spring Boot and JOOQ - Getting started
Spring Boot and JOOQ - Getting started
January 3, 2024
This article will show how to use jOOQ in your spring boot projects.
Why do we need jOOQ? There is a lot of pain using JPA and Hibernate. That is why we have something jOOQ.
First, we need to create a database schema. In this article, we will develop a simple CRUD (create, read, update, and delete) application to manage goods.
The first step is to design our database. The application will contain only one table — goods. The table looks like below.
erDiagram GOODS { id uuid pk "ID" name string "The name of good" price numeric "The price of good" total_count int "The total count of good" sold_count int "The sold count of good" deleted bool "The flag indicated that good was deleted" }