Hello, With jOOQ 3.1, you will indeed have to write your own GeneratorStrategy. You might have to debug through the code generation process to see how to best implement the single column-renaming.
With jOOQ 3.2, there is now a new XML-based matcher strategy, which allows you to perform such a simple renaming through the use of regular expression pattern matching. This is documented here: http://www.jooq.org/doc/3.2/manual/code-generation/codegen-matcherstrategy/ For example <fields> <!-- The field matcher regular expression. --> <expression>passwordEncrypted</expression> <fieldSetter><expression>setPasswordEncrypted</expression></fieldSetter> <fieldGetter><expression>getPasswordEncrypted</expression></fieldGetter> </fields> 2013/12/23 <[email protected]> > Hello, > > I have a table with a column named "passwordEncrypted" (case sensitive and > camel cased). > > I'd like Jooq to generate the Pojo with : > > - *setPasswordEncrypted()* > - *getPasswordEncrypted()* > > instead of > > - *setPasswordencrypted()* > - *getPasswordencrypted()* > > Do I have to specify my own GeneratorStrategy ( > http://www.jooq.org/doc/3.1/manual/code-generation/codegen-advanced/ ) or > is there a built-in option for that? > > Thanks in advance! > > > -- > 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/groups/opt_out. > -- 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/groups/opt_out.
