Thanks for the response! I was hoping that I could use some magic annotation for my field ;) Any plans regarding that? But another pair of setter/getter seems to be acceptable workaround for my case.
понедельник, 14 сентября 2015 г., 16:03:06 UTC+3 пользователь Lukas Eder написал: > > Hi there, > > You can use an org.jooq.Converter for simple cases where you just need to > map between String and YourType, or an org.jooq.Binding for more advanced > cases, where your type needs to be treated specially at the JDBC interface. > See also: > > - http://www.jooq.org/doc/latest/manual/code-generation/custom-data-types > - > http://www.jooq.org/doc/latest/manual/code-generation/custom-data-type-bindings > > Hope this helps, > Lukas > > 2015-09-14 13:08 GMT+02:00 jdoe <[email protected] <javascript:>>: > >> Hello! >> >> I have a varchar field in a DB that is mapped to a String property. >> In fact this string is actually contains few numbers separated by the >> comma. >> What's the most *reusable way* to treat this field as a >> List<Integer/Long> property? >> >> -- >> 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] <javascript:>. >> 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.
