-->
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.  [ 7 posts ] 
Author Message
 Post subject: how to use middlegen for generate hibernatedao?
PostPosted: Tue Jan 25, 2005 9:27 pm 
Regular
Regular

Joined: Sat Apr 10, 2004 8:39 pm
Posts: 84
how to use middlegen for generate hibernatedao?

I've read

http://boss.bekk.no/boss/middlegen/plug ... rnate.html

in this article

<hibernate
destination="${hibernate.dir}"
package="${base.package}.data"
javaTypeMapper="middlegen.plugins.hibernate.HibernateJavaTypeMapper"
genXDocletTags="true">
<hibernateDAO />
</hibernate>



but there is error while running :

BUILD FAILED
D:\Program Files\Middlegen-Hibernate-r5\custom.build.xml:148: Class middlegen.pl
ugins.hibernate.HibernatePlugin doesn't support the nested "hibernateDAO" elemen
t.

_________________
I am the creatxr of world.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 25, 2005 9:31 pm 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
http://www.hibernate.org/Projects/ToolsForHibernate2X

Do the workshop.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 26, 2005 12:18 am 
Regular
Regular

Joined: Sat Apr 10, 2004 8:39 pm
Posts: 84
can you give me more information. thanks.

I can't find the info for hibernatedao in witch page you show me.

how to gererate dao class use ant and middlegen ?

_________________
I am the creatxr of world.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 26, 2005 1:03 am 
Regular
Regular

Joined: Sat Apr 10, 2004 8:39 pm
Posts: 84
where to place <hibernateDAO/>
or must I download files?

_________________
I am the creatxr of world.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 26, 2005 4:40 am 
Regular
Regular

Joined: Sat Apr 10, 2004 8:39 pm
Posts: 84
I think I 've found the problem.

if I want to use <hibernateDAO/>
I must use the lib in the middlegen-2.1 not the lib in the hibernate-middlegen-r5.

the lib in the middlegen-2.1 does not surpport
property
genIntergratedCompositeKeys="false"

and the lib in the R5 does not surpport
nested element <hibernateDAO/>

that 's the reason.


My God.

_________________
I am the creatxr of world.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 26, 2005 10:52 am 
Newbie

Joined: Sat Apr 24, 2004 6:25 pm
Posts: 14
Location: Rochester, NY
There have been several recent fixes to the hibernateDAO that have not been released yet, you should try building a version from CVS.

Ben


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 26, 2005 10:38 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
I still have a few minor things to do before I do the next release (working with hibernate 3 tools) but I will try and get it done soon. Otherwise use the CVS version for better support for this feature. R6 is not far away.


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