jOOQ Configuration
org.jooq.Configuration
represents the spine of DSLContext
. DSLContext
needs the precious information provided by Configuration
for query rendering and execution. While Configuration
takes advantage of Settings
(as you just saw), it also has a lot more other configurations that can be specified as in the examples from this section.
By default, Spring Boot gives us a DSLContext
built on the default Configuration
(the Configuration
accessible via ctx.configuration()
), and as you know, while providing custom settings and configurations, we can alter this Configuration
globally via set()
or locally by creating a derived one via derive()
.
But, in some scenarios, for instance, when you build custom providers or listeners, you'll prefer to build the Configuration
to be aware of your artifacts right from the start instead of extracting it from DSLContext
. In other words, when DSLContext
is built, it should use the ready-to-go Configuration
.
Before Spring Boot...