-->
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.  [ 4 posts ] 
Author Message
 Post subject: Code generation and Auto implements Interface
PostPosted: Mon Feb 25, 2008 12:39 pm 
Newbie

Joined: Mon May 29, 2006 6:14 am
Posts: 17
Hello
I am using Eclipse 3.3 and Hibernate Tools 3.2 cr1.

I create POJO and hbm.xml files with Hibernate Tools.
I want to implements my private interface on all POJOs with automatically when I run configuration file on eclipse

How can I do that

Thank You for your help


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 26, 2008 8:09 am 
Senior
Senior

Joined: Mon Feb 25, 2008 1:48 am
Posts: 191
Location: India
You can use the meta tag attribute="class-code" to add any additional code to ur generate jave class. You can use the meta tag attribute = "implements" to implement an interface.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 27, 2008 3:36 am 
Newbie

Joined: Mon May 29, 2006 6:14 am
Posts: 17
Sukirtha wrote:
You can use the meta tag attribute="class-code" to add any additional code to ur generate jave class. You can use the meta tag attribute = "implements" to implement an interface.


Thank you. But I cannot understand that Where will I add the meta tag. Which file?

Thank you


Top
 Profile  
 
 Post subject:
PostPosted: Mon Mar 03, 2008 1:38 am 
Senior
Senior

Joined: Mon Feb 25, 2008 1:48 am
Posts: 191
Location: India
Sorry for the delay in posting the reply. U will have to add the meta tag nested inside the class tag in your .hb.xml file. You can also mention a global meta tag, in which case all the classes in the hibernate mapping file will implement the same interface.


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

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.