560 blogs tracked4,950 posts indexed

#jooq

7 posts · 1 company · newest first

1

Simplifying ANTI JOIN with jOOQ Syntax (opens on the source site)

ANTI JOIN is a very useful operator from relational algebra. Regrettably, only few dialects support it in terms of SQL syntax, as we’ve written earlier. In jOOQ, you can write it as follows: If your RDBMS supports this natively (e.g. ClickHouse, Databricks), then it is rendered as such. Otherwise, jOOQ will translate this to: But … Continue reading Simplifying ANTI JOIN with jOOQ Syntax →

jooq-in-usesqlexcerpt only · body stays at the source
From the web
2

Managing Sensitive Data in jOOQ 3.21+ Logs (opens on the source site)

One of jOOQ’s most popular feature is the out-of-the-box debug logging experience. jOOQ developers find this feature very useful when developing their applications. Assuming you run a jOOQ query and configure your logger to print DEBUG log output: When this query is executed, your log output might contain something like this: Executing query : select … Continue reading Managing Sensitive Data in jOOQ 3.21+ Logs →

jooq-in-usedebug-loggingexcerpt only · body stays at the source
From the web
3

Resisting the Urge to Document Everything Everywhere (opens on the source site)

Every product manager knows this situation: This is such a common pattern, and while it’s perfectly understandable for such a user to request this, it is so terribly wrong to give in to this user’s request. Why is it wrong? The features are unrelated Most of the time, the two features X1 and X2 are … Continue reading Resisting the Urge to Document Everything Everywhere →

jooq-developmentcaveatexcerpt only · body stays at the source
From the web
4

To DAO or not to DAO (opens on the source site)

jOOQ’s DAO API is one of jOOQ’s most controversial features. When it was first implemented, it was implemented merely: There’s a strong hint about the third bullet given how popular Spring Data’s repository “pattern” is. A lot of developers just want to quickly fetch and store data, without giving individual queries much thought. A fun … Continue reading To DAO or not to DAO →

jooq-in-usedaoexcerpt only · body stays at the source
From the web
5

How to Generate Package Private Code with jOOQ’s Code Generator (opens on the source site)

Java’s package private visibility is an underrated feature. When you omit any visibility modifier in Java, then the default (for most objects) is package private, i.e. the object is visible only to types in the same package: In fact, a compilation unit (the .java file) can contain multiple such classes. You don’t have to create … Continue reading How to Generate Package Private Code with jOOQ’s Code Generator →

jooq-in-usecode-generatorexcerpt only · body stays at the source
From the web
6

How to use jOOQ’s Converters with UNION Operations (opens on the source site)

jOOQ 3.15 introduced the concept of an ad-hoc converter, a converter that is applied “ad-hoc” to a single query. It uses the same underlying mechanisms as any ordinary Converter that is attached to generated code for use in every query. An example of such an ad-hoc converter is this: While there are other ways to … Continue reading How to use jOOQ’s Converters with UNION Operations →

jooq-in-usead-hoc-converterexcerpt only · body stays at the source
From the web
7

How to Write a Derived Table in jOOQ (opens on the source site)

One of the more frequent questions about jOOQ is how to write a derived table (or a CTE). The jOOQ manual shows a simple example of a derived table: In SQL: In jOOQ: And that’s pretty much it. The question usually arises from the fact that there’s a surprising lack of type safety when working … Continue reading How to Write a Derived Table in jOOQ →

jooq-in-usesqlexcerpt only · body stays at the source
From the web
7 shown

Privacy choices

Reading never requires analytics. These choices last 90 days on this browser.

Essential sign-in and security storage always stays on. Read the privacy notice.