Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to use hbm2java and cfg2hbm in HIBERNATE

Status
Not open for further replies.

sheed

Programmer
Jun 14, 2005
38
US
Hi,

I am new to hibernate and need some information. I looked at several examples online and tried them too.
One thing I can't figure out is how to use cfg2hbm and hbm2java, didn't find any docs., can someone point me to some tutorial that explains how to use these.
I see following text on most of the *.hbm.xml files
Code:
<!-- 
Auto-generated mapping file from 
the bibernate.org cfg2hbm engine 
-->

and on persistent classes (means I should have hbm.xml files available before I use hbm2java)
Code:
/** 
 * generated by hbm2java 
 */

Can some please tell me how to use cfg2hbm and hbm2java a small example will really help. I tried posting on Hibernate forum but no answer. So posting here as most of you
probably have used Hibernate. Any help is appreciated.

Thanks
 
Are they part of hibernate distribution? As I know they are not.
 
They are part of the Hibernate distribution.

Tim
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top