Hi Julian,

Thanks for your message. It's possible but you have to roll your own.

*Code generation:*

Ideally, you'd turn of pojo generation and generate your own classes by
extending the JavaGenerator. The simplest path forward would be to take
inspiration from the existing logic. If you have specific questions, I'll
be very happy to help. Your custom code generator would then also generate
those annotations for you.

There's nothing out of the box that allows you to configure complex custom
behaviour / types.

*Mapping:*

You'll need to tell jOOQ how to map records to your beans. The best way
here is to implement your own RecordMapperProvider (and of course,
RecordMapper) and put that in the Configuration. This is documented here:
https://www.jooq.org/doc/latest/manual/sql-execution/fetching/pojos-with-recordmapper-provider

That mapper would then take care of initialising all fields with
appropriate defaults and taking care of other caveats specific to those
beans or fxform.


Hope this helps,
Again, I'll be very happy to assist you with any specific questions you may
have from here on.
Lukas

2017-03-11 9:53 GMT+01:00 <[email protected]>:

> Dear JOOQ Group,
>
> i'm looking for the best Solution to combine JOOQ and fxForm2.
>
> Right now i'm using jooq generated pojo classes as "model bean".
> It work's with limitations due to null variables etc.
>
> So my Questions:
> Is it possible to generate BeanProperties instead of e.x. a normal String
> with the Jooq Generator?
> Is it possible to initialise variables automatically e.x. Boolean = False,
> Int = 0 ...
> For some variables annotation are needed (e.x. @FormAdapter(BigDecimalA
> dapter.class)) is it possible to do this automatically - maybe a regex -
> by the Generator?
>
> Thank you very much for your answers.
>
> Regards,
> J.
>
> --
> 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.

Reply via email to