Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Configuration configA=new Configuration();//use the default hibernate.cgf.xml file
- Congiruration configB=new Configuration.configure('/hibernate_db2.cfg.xml') // use hibernate_db2.cfg.xml under root folder.
- SessionFactory sfa=configA.buildSessionFactory();
- SessionFactory sfb=configB.buildSessionFactory();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement