• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
  • Mikalai Zaikin

Is it possible two hibernate.mppaing.xml in a application with same databse?

Posts: 28
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Team, I have some performance issues because of my existing hbm file. I enabled lazy="false" in most of the place. So, I am getting child objects and it is performance issue. Tell it is possible, Can i configure one hibernate.mapping.xml with duplicate copy of hbml file with lazy="true". If so, what are the thing i need to do and what are the impact i will face?

--->Having two hibernate.cfg.xml on the same project
SessionFactory sessionFactory1 = new Configuration().configure("oracleconfig.cfg.xml").buildSessionFactory();
Session webSession=sessionFactory2.getCurrentSession();

SessionFactory sessionFactory2 = new Configuration().configure("oracleconfig_duplicate.cfg.xml").buildSessionFactory();
Session webServiceSession=sessionFactory2.getCurrentSession();
Consider Paul's rocket mass heater.
    Bookmark Topic Watch Topic
  • New Topic