Search in sources :

Example 1 with ExceptionTranslator

use of com.baeldung.jooq.introduction.ExceptionTranslator in project tutorials by eugenp.

the class InitialConfiguration method configuration.

public DefaultConfiguration configuration() {
    DefaultConfiguration jooqConfiguration = new DefaultConfiguration();
    jooqConfiguration.set(connectionProvider());
    jooqConfiguration.set(new DefaultExecuteListenerProvider(new ExceptionTranslator()));
    return jooqConfiguration;
}
Also used : DefaultExecuteListenerProvider(org.jooq.impl.DefaultExecuteListenerProvider) ExceptionTranslator(com.baeldung.jooq.introduction.ExceptionTranslator) DefaultConfiguration(org.jooq.impl.DefaultConfiguration)

Aggregations

ExceptionTranslator (com.baeldung.jooq.introduction.ExceptionTranslator)1 DefaultConfiguration (org.jooq.impl.DefaultConfiguration)1 DefaultExecuteListenerProvider (org.jooq.impl.DefaultExecuteListenerProvider)1