-->
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.  [ 1 post ] 
Author Message
 Post subject: How can I use more than a .cfg.xml file configuration??
PostPosted: Tue Mar 09, 2004 9:39 am 
Newbie

Joined: Wed Feb 18, 2004 6:50 am
Posts: 6
Hello!

I have a problem with the Hibernate, I dont know how I can to use more than one .cfg.xml file to configure a SessionFactory.

i.e. the follow code dont work fine..

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

and that dont work to...

sessionFactory = new Configuration().addFile(new File("myFile.cfg.xml")).buildSessionFactory();

tks,

Marcos Gorll

_________________
"If brute force don't resolve your problems... you aren't using enought"


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

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.