-->
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.  [ 3 posts ] 
Author Message
 Post subject: hibernate wrapper generator
PostPosted: Sun Apr 25, 2004 7:55 pm 
Newbie

Joined: Sat Apr 24, 2004 6:25 pm
Posts: 14
Location: Rochester, NY
Has any anybody written a hibernate wrapper generator, it seems like it would be pretty useful. So for each POJO it would create a cooresponding class that had contained all of the hibernate code.

It would generate a bunch of common finder methods( findAll, findByPK, findBy<one for other columns> with corresponding HQL(probably save/update/delete methods for consistency)

This was available when using CMP with middlegen/xdoclet(the facade stuff) and was very helpful because most queries in a system are pretty simplistic and I would rather not have to write them.

If this has been done, great please point me in the right direction. If not then I will write it, probably as part of the middlegen hibernate plugin. Any thoughts or comments?

Ben


Top
 Profile  
 
 Post subject:
PostPosted: Sun Apr 25, 2004 7:57 pm 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
hmb2java supports this, as part of the Hibernate roundtrip development tools:

http://www.hibernate.org/102.html

_________________
JAVA PERSISTENCE WITH HIBERNATE
http://jpwh.org
Get the book, training, and consulting for your Hibernate team.


Top
 Profile  
 
 Post subject: hibernate wrapper generator
PostPosted: Sun Apr 25, 2004 8:36 pm 
Newbie

Joined: Sat Apr 24, 2004 6:25 pm
Posts: 14
Location: Rochester, NY
I feel stupid for reading that pages and missing that section. Thanks for the response.

It appears that I still need to list out all the finders that I want, with over 100 tables and hundreds of columns for find on, I think I would rather just generate a finder for every column, it is not like there are any drawbacks to having extra finder methods that don't get used.

Ben


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