-->
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: code generator
PostPosted: Mon Feb 20, 2006 1:26 pm 
Newbie

Joined: Mon Feb 20, 2006 1:21 pm
Posts: 12
i'm just getting started with hibernate. i wanted to generate the classes mapped by the *.hbm.xml with a code generator. I noticed there is codegenerator with version 2 what about hibernate 3? I just downloaded the tools and dont see it yet.

thank you


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 20, 2006 2:25 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
yes, there is a code generator.

the docs is at tools.hibernate.org and the codegenerator is available both in the eclipse tools and ant (called hbm2java)

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 20, 2006 4:16 pm 
Newbie

Joined: Mon Feb 20, 2006 1:21 pm
Posts: 12
thank you max. I will go ahead and start with the ant version first before i do the eclipse one.

i was kind of hoping just to test it out on the command line first by using something like the previous org.hibernate.tool.hbm2java.CodeGenerator which seems to be gone.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 20, 2006 4:19 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
yes...people had too many issues with it and ant is much better of handling this stuff (even though it requires you writing a build.xml)

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 20, 2006 5:18 pm 
Newbie

Joined: Mon Feb 20, 2006 1:21 pm
Posts: 12
don't mean to be a pain but the error message I'm getting now is not very verbose:

build.xml:27: Failed in building configuration when adding TopTenItem.hbm.xml

does HibernateToolTask log this somewhere, maybe with log4j? i didnt see any docs about it


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 20, 2006 5:56 pm 
Newbie

Joined: Mon Feb 20, 2006 1:21 pm
Posts: 12
nevermind i see it from ant -debug.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 21, 2006 12:36 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
improved in cvs to contain more info.

as always with ant run it with -verbose to get more info

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