Results 1 to 2 of 2
  1. #1
    stsivaraj is offline Member
    Join Date
    Nov 2010
    Rep Power

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

    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.getCurrentSessio n();

  2. #2
    Join Date
    Apr 2014
    Rep Power

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

    what do you want - two hibernate.cfg.xml or two hibernate.mppaing.xml ?

Similar Threads

  1. application Java EE with Hibernate and struts
    By dravril15 in forum Reviews / Advertising
    Replies: 2
    Last Post: 06-16-2013, 07:16 AM
  2. Replies: 1
    Last Post: 02-08-2012, 12:12 PM
  3. Replies: 0
    Last Post: 10-12-2011, 12:13 PM
  4. Replies: 0
    Last Post: 08-20-2009, 08:39 AM
  5. Replies: 2
    Last Post: 07-04-2007, 07:58 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts