-->
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: Help-How to generate-.hbm.xml ?
PostPosted: Sat Feb 28, 2004 4:54 am 
Beginner
Beginner

Joined: Sun Sep 07, 2003 9:04 am
Posts: 48
I have some java files, like tes.java that I want to genetated the .hbm.xml, how do I do this ?
I have downlaod C:\hibernate-2.1.2\hibernate-2.1;then copied my java files that i want to generate the hbm.xml for to C:\hibernate-2.1.2\hibernate-2.1\test\ but no hbm.xml is generated for my java files.
Help.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Feb 28, 2004 5:37 am 
Beginner
Beginner

Joined: Thu Jan 01, 2004 11:36 am
Posts: 23
Location: Belgium
You will have to generate the hbm files yourself; you can do this based on the examples which come with the documentation and which are quite good; on the other hand, there are some tools available which help you automate this process; i sue middlegen for this purpose, which has a hibernate extention.

Hope it helps, Jan


Top
 Profile  
 
 Post subject:
PostPosted: Sat Feb 28, 2004 7:01 am 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
Starting with the java files you have two possibilitys: Put XDoclet tags in them, and have XDoclet generate the mapping files. Use class2hbm from Hibernate-Extensions, which generates hbms which you can use as a starting point.


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.