Hi Mr Lukas Eder,

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

An example: OpenSwing project requires that the user mapped objects int its 
components extends the class 
org.openswing.swing.message.receive.java.ValueObjectImpl

For example, if i have a jooq generated pojo, to make it compatible with 
OpenSwing i need to add extends 
org.openswing.swing.message.receive.java.ValueObjectImpl in class 
definition, as above:


package dbLayer.db.tables.pojos;

*import org.openswing.swing.message.receive.java.ValueObjectImpl;*

@javax.annotation.Generated(value    = {"http://www.jooq.org";, "2.0.5"},
                            comments = "This class is generated by jOOQ")
public class Vaccine * extends ValueObjectImpl *implements 
java.io.Serializable {

    private static final long serialVersionUID = 946855733;

    private java.lang.Integer id;
    private java.lang.String  description;
    private java.lang.String  dosage;
    private java.lang.String  givingPeriod;
    private java.lang.Integer illnessId;
    private java.lang.String  note;

bla bla bla
.......


I want ask you: is possible to add a tag in code generator xml to provide 
an extends class to include in pojo??

Example:

<generate>......
  <pojos>true</pojos>
  
*<pojos-extends-class>org.openswing.swing.message.receive.java.ValueObjectImpl</pojos-extends-class>*
......
</generate> 

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.
Sorry for my bad english, hope i was clear, if not tell me your trouble.

Thank you again for your fantastic work!

Best regards,

 Agharta


Reply via email to