-->
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: using addCacheableFile causes exception
PostPosted: Tue Oct 11, 2005 2:59 pm 
Newbie

Joined: Wed Apr 13, 2005 8:10 am
Posts: 15
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)


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.