wood burning stoves 2.0*
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 Android Security Essentials Live Lessons this week in the Android 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
 
Similar Threads
InvalidMappingException
Duplicate collection role mapping
Duplicate class/entity mapping error
issue with Xdocler Ant Task
I get a ClassCastException