-->
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: How to generate classes extending the Original Dao
PostPosted: Thu Jun 29, 2006 7:32 am 
Newbie

Joined: Wed Jun 28, 2006 11:04 am
Posts: 4
I'd need something like this:


Code:
package com.xxxx.yyyy.zzzz;
OriginalDaoGENERATED extends OriginalDao
{
}


where OriginalDao is one of my Daos generated by

Code:
<target   name="hbm2java"   depends="hbm2config">
   <hibernatetool destdir="${build.dir}/src"   >
      <configuration configurationfile="${build.dir}/hibernate.cfg.xml">
      </configuration>
      <hbm2java jdk5="true"/>   
   </hibernatetool>
</target>


I've read some forum entries that are about somehow related issues, but I dind't read a final answer somewhere.
The only solution seems to be <hbmtemplate>, but the only documenation I could find for it is:
http://www.hibernate.org/hib_docs/tools/reference/en/html/ant.html#hbmtemplate
And I just cant make it happen with the information there.
Any hint's where to get more detailed docu (meaning dummy howto), or can someone write a short one here ?

Env-Info, using:
jdk5, no ejb, hibernate 3, and the jar's in org.hibernate.eclipse_3.1.0.beta5 for the hibernatetool ant-tasks.

Any help at all, much appreciated
fish


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jun 30, 2006 12:47 pm 
Newbie

Joined: Wed Jun 14, 2006 7:40 pm
Posts: 8
Hi use the meta element

Code:
<class name="OriginalDaoGENERATED" ...
<meta attribute="extends">OriginalDao</meta>

....
</class>


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.