-->
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: How to generate .hbm and .java files from tables with v3?
PostPosted: Fri Dec 09, 2005 9:24 pm 
Newbie

Joined: Tue Aug 02, 2005 5:04 pm
Posts: 15
Hibernate version:
v3


With v2 I used middlegen which worked nicely despite making the associations return Sets as opposed to Lists, but I digress. I simply pointed it to the tables, told it about foreign keys and it did everything.

But middlegen doesn't seem to work with v3 judging from the docs. How are people doing this? I'd like to input all 30+ tables once into the database then magically have everything generated from there, entering in everything into .hbm's or .java POJO files is tedious. I'm not above that but I'm hoping there's a better way.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 09, 2005 11:19 pm 
Expert
Expert

Joined: Mon Jul 04, 2005 5:19 pm
Posts: 720
http://www.hibernate.org/255.html


Top
 Profile  
 
 Post subject:
PostPosted: Sat Dec 10, 2005 3:59 pm 
Newbie

Joined: Tue Aug 02, 2005 5:04 pm
Posts: 15
dennisbyrne wrote:
http://www.hibernate.org/255.html

Niiice! Does everything and then some, I like the customizable .vm's as well.

Awesome!


Top
 Profile  
 
 Post subject:
PostPosted: Sun Dec 11, 2005 9:25 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
CVS version of Middlegn does do H3 but I recommend you use Hibernate tools now.


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.