I tried configuring spring as provided in the example with jooq 3.5.1. 

In the previous releases the DefaultConfiguration was configured via 
constructor args where in the new release its using properties according to 
the jooq docs for 3.5 
<http://www.jooq.org/doc/3.5/manual/getting-started/tutorials/jooq-with-spring/#N28A18>
.
But spring keeps telling me that SQLDialect is an invalid property. 

Any Ideas?

My xml part:
//datasource etc. left out for readability

<bean id="connectionProvider" 
class="org.jooq.impl.DataSourceConnectionProvider">
<constructor-arg ref="transactionAwareDataSource" />
</bean>

<bean id="dsl" class="org.jooq.impl.DefaultDSLContext">
        <constructor-arg ref="config" />
    </bean>
    
    <bean id="exceptionTranslator" 
class="org.jooq.example.spring.exception.ExceptionTranslator" />
    
    <!-- Invoking an internal, package-private constructor for the example
         Implement your own Configuration for more reliable behaviour -->
    <bean class="org.jooq.impl.DefaultConfiguration" name="config">
        <property name="SQLDialect"><value 
type="org.jooq.SQLDialect">MARIADB</value></property>
        <property name="connectionProvider" ref="connectionProvider" />
        <property name="executeListenerProvider">
            <array>
                <bean class="org.jooq.impl.DefaultExecuteListenerProvider">
                    <constructor-arg index="0" ref="exceptionTranslator"/>
                </bean>
            </array>
        </property>
    </bean>


Best regards

Stefan

-- 
You received this message because you are subscribed to the Google Groups "jOOQ 
User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to