Search in sources :

Example 36 with SQLDialect

use of org.jooq.SQLDialect in project tutorials by eugenp.

the class PersistenceContextIntegrationTest method configuration.

@Bean
public DefaultConfiguration configuration() {
    DefaultConfiguration jooqConfiguration = new DefaultConfiguration();
    jooqConfiguration.set(connectionProvider());
    jooqConfiguration.set(new DefaultExecuteListenerProvider(exceptionTransformer()));
    String sqlDialectName = environment.getRequiredProperty("jooq.sql.dialect");
    SQLDialect dialect = SQLDialect.valueOf(sqlDialectName);
    jooqConfiguration.set(dialect);
    return jooqConfiguration;
}
Also used : DefaultExecuteListenerProvider(org.jooq.impl.DefaultExecuteListenerProvider) SQLDialect(org.jooq.SQLDialect) DefaultConfiguration(org.jooq.impl.DefaultConfiguration) Bean(org.springframework.context.annotation.Bean)

Aggregations

SQLDialect (org.jooq.SQLDialect)36 List (java.util.List)7 Select (org.jooq.Select)7 Condition (org.jooq.Condition)6 Table (org.jooq.Table)6 Set (java.util.Set)5 Configuration (org.jooq.Configuration)5 QueryPart (org.jooq.QueryPart)5 Record (org.jooq.Record)5 Connection (java.sql.Connection)4 Collection (java.util.Collection)4 Field (org.jooq.Field)4 TRUE (java.lang.Boolean.TRUE)3 SQLException (java.sql.SQLException)3 ArrayList (java.util.ArrayList)3 Arrays.asList (java.util.Arrays.asList)3 Clause (org.jooq.Clause)3 Comparator (org.jooq.Comparator)3 Context (org.jooq.Context)3 Name (org.jooq.Name)3