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?
|