Expert |
|
Joined: Thu May 26, 2005 9:19 am Posts: 262 Location: Oak Creek, WI
|
Hi,
In eclipse, go to java buildpath and associate the common project required for your application specific project. i.e) select the "Required projects on the build path" in Projects tab of Java build path. So this will make your classes and hbm files available to your application projects.
And now comes the bigger one. You should use seperate hibernate.cfg.xml for common project and create several hibernate.cfg.xml for application project if your backend of common project and application project are different.
If both the common and application project use the same database. then in your extend the HibernateUtil class of common project create you own class to add the .hbm files of application project.
I'm giving you my opinion, i feel it is possible.
Hope this helps:-)
_________________ RamnathN
Senior Software Engineer
http://www.linkedin.com/in/ramnathn
Don't forget to rate.
|
|