Hi!

We're running into a problem with a custom converter that we wrote.

The converter is used to convert java.sql.Date into Joda's DateTime and 
vice versa. We created it following the GregorianCalendar example.

Then we're configuring:


      <customTypes>
>         <customType>
>           <name>JodaDateTime</name>
>           <type>org.joda.time.DateTime</type>
>           <converter><package to class>DateTimeConverter</converter>
>         </customType>
>       </customTypes>
>       <forcedTypes>
>         <forcedType>
>           <!-- Specify any data type from org.jooq.impl.SQLDataType -->
>           <name>DECIMAL</name>
>           <types>NUMBER.*|INTEGER</types>
>         </forcedType>
>         <!-- SQL Date to DateTime -->
>         <forcedType>
>           <name>JodaDateTime</name>
>           <types>DATE</types>
>         </forcedType>
>       </forcedTypes>



For table it seems to work, but for packages we run into problems:

    [javac] 
E:\oracle\jenkins\workspaces\Services_HEAD_DBAccess_All\generated\...\XdsQueryParams.java:52:
 incompatible types
    [javac] found   : org.jooq.UDTField<...XdsQueryParamsRecord,java.sql.Date>
    [javac] required: 
org.jooq.UDTField<...XdsQueryParamsRecord,org.joda.time.DateTime>
    [javac]     public static final org.jooq.UDTField<...XdsQueryParamsRecord, 
org.joda.time.DateTime> CREATIONTIMETO = createField("CREATIONTIMETO", 
org.jooq.impl.SQLDataType.DATE, XDS_QUERY_PARAMS);


and 


E:\oracle\jenkins\workspaces\Services_HEAD_DBAccess_All\generated\...\Setarchivdatenbyquittierung.java:49:
 incompatible types
    [javac] found   : org.jooq.Parameter<java.sql.Date>
    [javac] required: org.jooq.Parameter<org.joda.time.DateTime>
    [javac]     public static final org.jooq.Parameter<org.joda.time.DateTime> 
P_UNTBEH_START = createParameter("P_UNTBEH_START", 
org.jooq.impl.SQLDataType.DATE);


What are we doing wrong?


Using a 3.5.0 snapshot generator on an Oracle 10g database.


Regards,


Sascha



-- 
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