Hi Scott,
Sure - you don't have to use the code generator. Just create a DataType
(you can make that a shared constant), which refers to your binding, and
use that with all plain SQL Fields, etc.:
public static final DataType<DateTime> DATE_TIME =
SQLDataType.TIMESTAMP.asConvertedDataType(new MyDateTimeBinding());
And then:
Field<DateTime> field = DSL.field("something", DATE_TIME);
That's the same thing what the code generator would generate.
In that case, using Maven or Gradle doesn't matter.
Hope this helps,
Lukas
2016-04-15 15:16 GMT+02:00 <[email protected]>:
> I'm not using the code generator. Is it possible to use a custom binding
> without the generated code?
>
> I'm also using gradle, not sure if that matters.
>
> On Friday, April 15, 2016 at 9:07:03 AM UTC-4, Lukas Eder wrote:
>>
>> Hi Scott,
>>
>> Spring Boot works no differently from ordinary Maven setups, except that
>> it helps you pull in the right versions of third party software. As you can
>> see in the Spring Boot documentation, you're essentially just configuring
>> the vanilla jOOQ code generator:
>>
>> https://docs.spring.io/spring-boot/docs/current/reference/html/boot-features-jooq.html
>>
>> For data type binding configurations, see the jOOQ manual here:
>>
>> http://www.jooq.org/doc/latest/manual/code-generation/custom-data-type-bindings
>>
>> Hope this helps. Let me know if you have any additional questions about
>> details.
>>
>> Cheers
>> Lukas
>>
>> 2016-04-15 14:47 GMT+02:00 <[email protected]>:
>>
>>> I have a custom data binder to handle conversion between Joda DateTime
>>> and sql Timestamp in my spring boot application. How would I go about
>>> registering the binder so jooq can use it?
>>>
>>> Thanks
>>>
>>> --
>>> 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.
>>>
>>
>> --
> 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.
>
--
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.