2015-01-28 18:35 GMT+01:00 Robert DiFalco <[email protected]>:

> I think that is what I would need, just a little confused about the
> "unknown type" talked about in the doc.
>

I see, that is indeed a bit confusing... We'll improve that (
https://github.com/jOOQ/jOOQ/issues/4010)
The reason for this is that without the Binding, the code generator would
not recognize the PostgreSQL "json" type, and generate a Field<Object>


> I assume it doesn't HAVE to be an unknown type.
>

No. The Binding's <T> type needs to match the generated column's <T> type,
if there were no Binding.


> So in the case where we might want to convert a Timestamp to a
> ZonedDateTime with special handling of PreparedStatement I would create a
> Binding<Timestamp,ZonedDateTime> with a custom
> Converter<Timestamp,ZonedDateTime> and then in my generator configuration
> specify the binding instead of the Converter?
>

Exactly

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