-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Mapping with two hibernate.cfg.xml files
PostPosted: Thu Jul 12, 2007 12:46 pm 
Newbie

Joined: Thu Jul 12, 2007 12:16 pm
Posts: 3
I've been having issues loading up a second hibernate.cfg.xml type of file. I've already checked the forums (http://forum.hibernate.org/viewtopic.ph ... 25f980b6c2), and double checked my work, but the mappings in the second file aren't getting loaded or recognized.

During initialization the following line of code runs fine, and all mappings it are good -

sessionFactory = new Configuration().configure("hibernate.cfg.xml").buildSessionFactory();

Also during intialization the following line of code is run, but no mappings in it are recognized -

sessionFactory = new Configuration().configure("/rshHibernate.cfg.xml").buildSessionFactory();

Is this even valid for me to do? If so, what can I do to get this to work?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 12, 2007 4:31 pm 
Newbie

Joined: Thu Jul 12, 2007 12:16 pm
Posts: 3
Nevermind, I was pointing my class to the hibernate.cfg.xml file instead of the rshHinbernate.cfg.xml file. OOPs


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.