Skip to content

Instantly share code, notes, and snippets.

View pcruz1905's full-sized avatar

Pruz pcruz1905

  • https://www.linkedin.com/in/pruz19/
  • Porto, Portugal
  • Instagram pedrcruzz
View GitHub Profile
@stantonk
stantonk / JDBIjOOQ.java
Last active May 11, 2026 20:03
JDBI + jOOQ. Combine SQL Builder of jOOQ with all the awesomeness of JDBI, but avoid using jOOQ's codegen, having to keep it up to date with schema changes (just update the single query that's changed) or overcomplicating your build process. jOOQ never touches the database.
// see:
// http://jdbi.org/fluent_queries/
// http://www.jooq.org/doc/3.7/manual/getting-started/use-cases/jooq-as-a-standalone-sql-builder/
// Your Java Bean
public static class Reminder {
private long id;
private long customerId;
public Reminder(long id, long customerId) {