-->
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: Could not reconfig the SessionFatory
PostPosted: Sat Jan 27, 2007 5:34 am 
Newbie

Joined: Sat Jan 27, 2007 5:21 am
Posts: 1
I need reconfig the mappings, I have the code:
URL url = DataCenter.class.getResource("../../" + name + "/hibernate.cfg.xml");
Configuration c = new Configuration().configure(url);


in hibernate 3.1.2 it's ok, when I changed the hibernate.cfg.xml at runtime, it return me a new Configuration.
in hibernate 3.2, when I modifyed the hibernate.cfg.xml then call these code, it seems hibernate uses cached hibernate.cfg.xml and not use the modified hibernate.cfg.xml, so in hibernate 3.2 I could not re config the SessionFactory.

Any one tell me why or give me a way to solve this problem?


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.