Hello Agharta,

> Could i tell you if there is a way to pass a "extends" code to generated
> pojos into code generator??

This makes perfect sense and it has been suggested before by Sander:
https://groups.google.com/d/topic/jooq-user/YuTp9-5K9fs/discussion

I'll file this as feature request #1243:
https://sourceforge.net/apps/trac/jooq/ticket/1243

I'm not quite sure about the implementation details, though. Ideally,
jOOQ-codegen would support velocity or XSLT or any other "scripting"
language for arbitrary source code generation, the way minute project
does already:
http://minuteproject.wikispaces.com/JOOQ

That would then allow for much more flexible generated artefacts. But
extending base classes in POJOs is quite a common use case, so I might
add it as you suggested in jooq-codegen.

Cheers
Lukas

> Better way if adding the complete <pojo-extends-class>  as xx.yy.ZZ, the
> generator calls the import directive in java class and simply use ZZ in
> extends definition, as written in code example.

I prefer not to import classes in generated artefacts. The risk of
collisions is too high.

Cheers
Lukas

Reply via email to