-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: hbm2java: Add "name" to @Entity
PostPosted: Fri Feb 10, 2012 7:50 am 
Newbie

Joined: Thu Feb 09, 2012 10:01 am
Posts: 1
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?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.