--
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 jooq-user+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi Lukas,
in plain JDBC one can set date like this "{d '2014-05-25'}" or get date like "2014-05-25" and parse it.
This way there is no need to deal with tragic sql.Date objects.
When declaring a jOOQ converter for date field, we can pick any user object we want, like LocalDate, but we are forced to use sql.Date as database type. Declaring String will not work, the code generator will produce broken definition.
Regards,
Witold Szczerba
---
Sent from my mobile phone.
Hi Lukas,
in plain JDBC one can set date like this "{d '2014-05-25'}" or get date like "2014-05-25" and parse it.
This way there is no need to deal with tragic sql.Date objects.
When declaring a jOOQ converter for date field, we can pick any user object we want, like LocalDate, but we are forced to use sql.Date as database type. Declaring String will not work, the code generator will produce broken definition.
I think it would be enough to let the converters to use the 'inline' mechanism, so we could do any conversion we want as far as the JDBC driver us fine with it.
The jOOQ would need to know how it is supposed to treat such a column, though... Maybe by adding third type parameter?
That would also let us deal with db custom types in converters, wouldn't it? Or is it already possible?
Regards,
Witold Szczerba
---
Sent from my mobile phone.
--
I think it would be enough to let the converters to use the 'inline' mechanism, so we could do any conversion we want as far as the JDBC driver us fine with it.
The jOOQ would need to know how it is supposed to treat such a column, though... Maybe by adding third type parameter?
That would also let us deal with db custom types in converters, wouldn't it? Or is it already possible?
So it seems there is nothing we can do for now with our date columns. At least not until #3248 gets released...
Or, is there any way to guide/amend the codegen somehow (without tweaking the jOOQ), so it would think the column is of character type? Then we could apply a String to LocalDate converter.
Regards,
Witold Szczerba
---
Sent from my mobile phone.
--