-->
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: generate hbm files from java?
PostPosted: Wed Nov 02, 2005 2:44 pm 
Newbie

Joined: Mon Nov 03, 2003 1:07 am
Posts: 14
Is this done via xdoclet, or hibernate tools?

It appears that this is done via xdoclet. If this is the case, it could be nice to more clearly document this in the ant hibernate tools page. It took me a while to figure out that hbm generation is only from reverse engineering a database and not java code.

Thanks.
Phillip


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 02, 2005 2:48 pm 
Beginner
Beginner

Joined: Wed Oct 19, 2005 4:11 am
Posts: 48
If you want to do that from your Java code or indeed your object model then you may be interested in the following post.

http://forum.hibernate.org/viewtopic.php?t=949601

_________________
Chris Colman
http://stepaheadsoftware.com/products/j ... avelin.htm
Javelin: Lightweight, non intrusive, POJO, Java modeling & coding with automatic Hibernate and JDO meta data generation.
Don't forget to credit ;)


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 02, 2005 2:59 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
annotations is also a possibilty.

we previously had a class2hbm, but pre jdk 1.5 there were not enough informaiton to provide a good mapping.

now with generics in jdk 1.5 it would make sense to reintroduce it - but its a low priority. Contributions welcome

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