-->
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.  [ 2 posts ] 
Author Message
 Post subject: hbm2java base and extendend class generation
PostPosted: Sat Jun 07, 2008 5:30 pm 
Newbie

Joined: Sat Jun 07, 2008 5:20 pm
Posts: 1
Hello,

as i can't find a "tutorial" to configure the hibernate tools that they generate a base class and an extended class i ask the question here.

So my idea is to write the hibernate mapping file and get the java code generated from it but i would like to have a base class generated from it and an empty extended class thereof (just to save the initial typing effort). I know that there was the option in tools version 2 to configure something like "baseclass-prefix" but this doesnt work in version 3?!?

I also know about the "generated-class" meta attribute, but i need this tag for every class (anoying and redundant typing, as it is the class name and a suffix "Base") and the inheritance of the "package" attribute isn't working on the generated-class attribute.

Can somebody help?

Thanks,
Cole


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jun 08, 2008 3:29 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
"global settings" like base-suffix is unfortunately not implemented yet in H3 tools.

_________________
Max
Don't forget to rate


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.