Hi there! Yes, it is possible and it is documented here: http://www.jooq.org/doc/latest/manual/code-generation/codegen-custom-code/
Every generated class type is generated by these two methods: generatePojo(TableDefinition) // Generates a POJO class generatePojoClassFooter(TableDefinition, JavaWriter) // Callback for a POJO class footer By default, the "ClassFooter" method is empty. When you override it, you can add additional content to the JavaWriter, using your own custom formatting, etc. Of course, you can also just completely rewrite the POJO from scratch by overriding the generatePojo() method. Hope this helps, Lukas 2014-05-20 16:16 GMT+02:00 <[email protected]>: > Hi guys ! > > I try to generate some classes with jOOQ, using a CustomStrategy and i > would like three of my pojos to implements an interface. > So i override : getJavaClassImplements(Definition definition, Mode mode) > by extending the DefaultGeneratorStrategy. > Now i'm wondering how can i tell the way the three pojos will implements > my interface ? > Because obviously if i dont tell that it will result by a compilation > failed. > > > It looks like it's impossible to do that in this way, but it is ? > > Thank you 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/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.
