This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Object Relational Mapping and the fly likes duplicate Mapping Exception : duplicate collection role mapping Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "duplicate Mapping Exception : duplicate collection role mapping" Watch "duplicate Mapping Exception : duplicate collection role mapping" New topic
Author

duplicate Mapping Exception : duplicate collection role mapping

Songezo Nkukwana
Ranch Hand

Joined: Nov 27, 2008
Posts: 51
Hi, i get this strange error and i have double checked that i don't have duplicates

ERROR



My hbm.xml



My Rank Class



and hibernate config



Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

Your first error means you have not mapped the class RankProfile.

Your second error means exactly what it says: you have mapped the collection rankProfiles more than once.

Given the configuration files you've posted look OK, I'd check what is actually deployed in your application because it looks like that's not what you think it is.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: duplicate Mapping Exception : duplicate collection role mapping