Regular |
|
Joined: Sun Apr 13, 2008 3:04 am Posts: 71 Location: Bangalore
|
this code may be of help in this context..
Configuration lConf = new AnnotationConfiguration();
lConf.configure("/resources/hibernate.common.cfg.xml");
lConf.configure(
ConfigHelper.locateConfig("resources/hibernate.cfg.xml"));
sessionFactory = lConf.buildSessionFactory();
Basically look at Configurtion api of hibernate.. and its different impl..
Regards,
Nagendra
_________________ Raja Nagendra Kumar, C.T.O http://www.tejasoft.com TejaSoft - Specialists in Code Audit, Unit Testing and Merciless Re-factoring - Engineering Crisis Turnaround Experts
|
|