This worked for me inside generator/database tag of generator
configuration. You have to write your own converter foreach type.
<customTypes>
<customType>
<name>LocalDateTime</name>
<type>java.util.time.LocalDateTime</type>
<converter>base.config.jooq.converters.LocalDateTimeConverter</converter>
</customType>
<customType>
<name>LocalDate</name>
<type>java.util.time.LocalDate</type>
<converter>base.config.jooq.converters.LocalDateConverter</converter>
</customType>
<customType>
<name>LocalTime</name>
<type>java.util.time.LocalTime</type>
<converter>base.config.jooq.converters.LocalTimeConverter</converter>
</customType></customTypes><forcedTypes>
<forcedType>
<name>LocalDateTime</name>
<expression>(\w+\.)?(?!UDT_PREFIX|PROC_PREFIX)\w+(\.\w+)?</expression>
<types>DATETIME</types>
</forcedType>
<forcedType>
<name>LocalTime</name>
<expression>(\w+\.)?(?!UDT_PREFIX|PROC_PREFIX)\w+(\.\w+)?</expression>
<types>TIME</types>
</forcedType>
<forcedType>
<name>LocalDate</name>
<expression>(\w+\.)?(?!UDT_PREFIX|PROC_PREFIX)\w+(\.\w+)?</expression>
<types>DATE</types>
</forcedType></forcedTypes>
Il giorno sabato 10 ottobre 2015 09:47:34 UTC+2, Denis Miorandi ha scritto:
>
> Reading this https://github.com/jOOQ/jOOQ/issues/4429, I found that this
> addition is related to runtime. It seems
> that for generator we need to wait 3.8.
>
>
>
> Il giorno venerdì 9 ottobre 2015 19:46:45 UTC+2, Denis Miorandi ha scritto:
>>
>> Does anyone used Java 8 LocalTime, LocalDate or LocalDateTime?
>> My configuration is based on
>>
>> - sqlserver 2012 express
>> - jdbc 4.2 driver from Ms. (I don't know if is mandatory for JSR310
>> in jooq)
>> - Java8 compiled version of jooq pro 3.7.0
>> - JDK 1.8.0_60
>>
>> I expect to have sql types automatically mapped on java jrs310 types on
>> generation but it doesn't. Actually my results are
>>
>> - sql datetime ==> java.sql.TimeStamp
>> - sql date ==> Long
>> - sql time ==> java.sql.Time
>>
>> Am I missing something?
>>
>> Tks
>>
>> Denis
>>
>>
>>
--
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.