-->
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.  [ 3 posts ] 
Author Message
 Post subject: duplicate collection role mapping
PostPosted: Fri Oct 28, 2005 11:24 am 
Newbie

Joined: Tue Mar 29, 2005 5:34 pm
Posts: 19
I keep getting this error when creating a configuration.

org.hibernate.MappingException: duplicate collection role mapping: bus.BptCase.medications

Stack Trace:

org.hibernate.MappingException: duplicate collection role mapping: bus.BptCase.medications
at org.hibernate.cfg.Mappings.addCollection(Mappings.java:102)
at org.hibernate.cfg.HbmBinder.createClassProperties(HbmBinder.java:1922)
at org.hibernate.cfg.HbmBinder.createClassProperties(HbmBinder.java:1897)
at org.hibernate.cfg.HbmBinder.bindRootPersistentClassCommonValues(HbmBinder.java:325)
at org.hibernate.cfg.HbmBinder.bindRootClass(HbmBinder.java:239)
at org.hibernate.cfg.HbmBinder.bindRoot(HbmBinder.java:110)
at org.hibernate.cfg.Configuration.add(Configuration.java:379)
at org.hibernate.cfg.Configuration.addInputStream(Configuration.java:418)
at org.hibernate.cfg.Configuration.addFile(Configuration.java:260)
at org.hibernate.console.ConsoleConfiguration$1.execute(Unknown Source)
at org.hibernate.console.execution.DefaultExecutionContext.execute(Unknown Source)
at org.hibernate.console.ConsoleConfiguration.buildWith(Unknown Source)
at org.hibernate.console.ConsoleConfiguration.build(Unknown Source)
at org.hibernate.eclipse.console.workbench.ConsoleConfigurationWorkbenchAdapter.getChildren(Unknown Source)
at org.hibernate.eclipse.console.workbench.BasicWorkbenchAdapter.fetchDeferredChildren(Unknown Source)
at org.eclipse.ui.progress.DeferredTreeContentManager$1.run(DeferredTreeContentManager.java:192)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:76)

Any help would be appreciated. I have the project up and running and am not adding the Hibernate Tools to my project. I can edit the mapping files and everything looks ok and my project works perfectly fine. Not sure what this could be.

_________________
Robert Fulcher


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 28, 2005 12:30 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
you probably just have listed the mappings files twice - once in the cfg.xml and once in the mapping file list.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 28, 2005 12:56 pm 
Newbie

Joined: Tue Mar 29, 2005 5:34 pm
Posts: 19
Thanks that was it.

_________________
Robert Fulcher


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

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.