This week's book giveaway is in the Agile and Other Processes forum. We're giving away four copies of The Little Book of Impediments (e-book only) and have Tom Perry on-line! See this thread for details.
Is it possible two hibernate.mppaing.xml in a application with same databse?
posted 2 years ago
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();
SessionFactory sessionFactory2 = new Configuration().configure("oracleconfig_duplicate.cfg.xml").buildSessionFactory();