In this video I show you how to use the jOOQ maven plugin (with intellij) in order to generate postgreSQL jooq objects. These jooq generated database objects provide me with a fluent and typesafe java DSL that can be easily used to select data from the tables and also insert new records. There are countless ways of selecting and persisting, have a look at the DSL options!
Lastly I show you how you can use jOOQ to generate SQL from its fluent DSL, I dont believe this a normal use-case but i have seen it done none-the-less.
Give Jooq a try, i personally enjoy using it because of the typesafety persisting and its ease of use – plus jooq is free for open source databases.
How did I find out about jooq? I came across jooq while at a seminar in Belfast where Lukas Eder (Creator of jooq) was giving a presentation on SQL performance tips. Since then my team and I have used it many times with our open source databases, and we have it as part of our high performance production applications.
Also showed:
How to start docker postgreSQL instance locally.
View a relational database with DBVisualizer application.
Hikari Connection Pool setup.
Lombok
Filmed at the top of The Dolomites in Italy.
Dont forget to subscribe!
Till next time
Philip
Spring Boot JOOQ
https://docs.spring.io/spring-boot/do...
Jooq
https://www.jooq.org/
Jooq Select
https://www.jooq.org/doc/3.10/manual/...
Jooq Insert
https://www.jooq.org/doc/3.10/manual/...
Jooq Statements
https://www.jooq.org/doc/3.10/manual/...
Jooq Code Generator
https://www.jooq.org/doc/3.10/manual/...
https://www.jooq.org/doc/3.10/manual/...
Hikari Connection Pool
https://github.com/brettwooldridge/Hi...
Dolomites
https://en.wikipedia.org/wiki/Dolomites