Hi,
I am using the latest 3.1RC with a sessionFactory as described in the wiki (
http://www.hibernate.org/194.html).
When I load the mapping files from my hibernate.conf.xml, everything is ok.
When using the cacheable version, I get a MappingException:
"duplicate collection role mapping: ..."
Since this does not happend on normal initialization - could this be a bug in the cacheable implementation?
Cheers,
Ron
Code:
# org.hibernate.cfg.Mappings.addCollection(Mappings.java:102)
# org.hibernate.cfg.HbmBinder.createClassProperties(HbmBinder.java:1922)
# org.hibernate.cfg.HbmBinder.createClassProperties(HbmBinder.java:1897)
# org.hibernate.cfg.HbmBinder.bindRootPersistentClassCommonValues(HbmBinder.java:325)
# org.hibernate.cfg.HbmBinder.bindRootClass(HbmBinder.java:239)
# org.hibernate.cfg.HbmBinder.bindRoot(HbmBinder.java:110)
# org.hibernate.cfg.Configuration.add(Configuration.java:379)
# org.hibernate.cfg.Configuration.addInputStream(Configuration.java:418)
# org.hibernate.cfg.Configuration.addResource(Configuration.java:473)
# org.hibernate.cfg.Configuration.parseMappingElement(Configuration.java:1414)
# org.hibernate.cfg.Configuration.parseSessionFactory(Configuration.java:1382)
# org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1363)
# org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1339)
# org.hibernate.cfg.Configuration.configure(Configuration.java:1259)
# org.hibernate.cfg.Configuration.configure(Configuration.java:1245)