Skip to content

shaunthomas999/my-jooq-spring-boot-sample

Repository files navigation

JOOQ - Spring-Boot Sample

Java CI with Maven

Reference

Database setup

  • Connect to local Postgresql database using command psql -U postgres
CREATE ROLE dev SUPERUSER LOGIN PASSWORD 'qwerty';
CREATE DATABASE "librarydb" OWNER "dev";

Notes

  • Database POJOs are generated from real database schema, table, columns etc. So connection to database is required during CI build
  • Usually, jooq-codegen generated Table, Record and Pojo classes are committed to git as a solution to above problem
  • Another solution is to use Jooq JPADatabase - https://www.jooq.org/doc/latest/manual/code-generation/codegen-jpa/
    • Generate Jooq Table, Record, Pojo etc. classes from Entity classes
    • Use Hibernate and H2 to create a temp database which can be used by jooq-codegen

About

Sample spring-boot application to try out JOOQ

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages