Hi, Thank you for quicky reply!!!! I've not seen the ticket #1243, sorry for duplicate request.
Your collision problem is right, full class declare is the better way. Minute project is the best way to implement this feature. As "extends" feature, "implements" feature could be done in same way. Your decision. In any case you are right, "extends" is the common used feature. Thank you again for you patience, Cheers, Agharta Il giorno lunedì 19 marzo 2012 15:11:10 UTC+1, Lukas Eder ha scritto: > > 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 > >
