File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: duplicate Mapping Exception : duplicate collection role mapping