-->
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: DAO Generation
PostPosted: Tue Jul 18, 2006 9:49 pm 
Newbie

Joined: Fri Jun 09, 2006 8:03 am
Posts: 12
Hibernate version: 3.2

I am looking into possible ways to make my DAO pattern. Currently I am doing the Generics based approach on the hibernate website. However, I am now looking for a ways to generate these DAO's quickly.

I am using Eclipse 3.2 as my IDE and of course tried Hibernate Tools. However, the default Pattern they give is poor. So, I tried using HibernateSynch as well. Their DAO pattern was pretty good.
So no I ask my question; is there any way I can make Hibernate Tools follow either one of these patterns?

Also, if someone has a good UML for the HibernateSynch DAO pattern, it would save me alot of time.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 19, 2006 3:20 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
why not contribute dao generation that follows the generics based approach ? :)

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 21, 2006 8:25 am 
Newbie

Joined: Fri Jun 09, 2006 8:03 am
Posts: 12
I would, but I don't even know how or what to do...I also wanted the solution now, since I won't need it down the road...
I still would try to contribute this if someone told me how


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 21, 2006 8:30 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
Go look at dao/daohome.ftl in hibernate-tools.jar, copy it, adjust it to generate the code you want it to generate.

via <hbmtemplate> in ant you can then point to your template instead via templatepath and you can run it and see the result.

_________________
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.  [ 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.