A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Object Relational Mapping
Where to put *.hbm.xml file
Joined: Mar 29, 2006
Sep 05, 2006 09:16:00
I am new to Hibernate , and i want to ask that where to put *.hbm.xml file.
Please tell the necessary work for that.
Joined: Apr 14, 2004
Sep 05, 2006 09:47:00
Put in the classpath in the same place as your pojo class.
Joined: Feb 05, 2001
Sep 05, 2006 10:37:00
Usually you will have your hibernate.cfg.xml in the root of your class path, then have your individual mappings in the same directory as your mapped objects.
Then in you hibernate.cfg.xml can point to the mapping files in a relative path that would actually match you package structure.
Perfect World Programming, LLC
Two Laptop Bag
How to Ask Questions the Smart Way FAQ
I agree. Here's the link:
subject: Where to put *.hbm.xml file
**/* patten in Ant?
Hibernate insert fails due to generate key failure
need good example of hibernate with composit key
No more .hbm.xml files
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015