We are generating entity objects using hbm2java for multiple databases. Unfortunately we have the same table name in two databases. This is causing a problem solved here:
http://isolasoftware.it/2011/10/14/hibernate-and-jpa-error-duplicate-import-try-using-auto-importfalse/So, I'm trying to modify the "Ejb3TypeDeclaration.ftl" template to add the "name" attribute to the existing @Entity annotation. I don't have a good understanding of the available elements. I've tried:
${class.packageName}
and
${clazz.packageName}
but these were just guesses and didn't work. What can I use here? Is there a tutorial or guide on modifying these templates and the element names available?