Hello grateparty!
You need to check "Hibernate XML Mapping (.hbm.xml)" under "Exporters" of your code generator (toolbarbutton - "Open Hibernate Code Generator Dialog ...").
Another Question:
I want all my generated pojos to extend a common superclass. There is an
'extends'-meta-tag that looks promissing. But I have to write it into each and every single .hbm.xml because its pseudo-inheritance only applies to classes defined in the same .hbm.xml.
Now, since my .hbm.xml are generated as well (actually alongside the java-source in a single operation):
How to specify the superclass?
Thanks
Holger
PS: Currently I use a workaround in PojoTypeDeclaration.ftl:
Code:
... ${pojo.getDeclarationName()} extends MySuperClass ${pojo.getExtendsDeclaration()} ...