-->
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: Log4Net WARN: Duplicate Class Mapping or Collection role
PostPosted: Thu Dec 15, 2005 4:21 pm 
Just wondering as I couldn't find any data on this in Google.

When I load up my configuration at the initialisation of my program Log4Net gives me various entries that begin:

WARN: Duplicate Class Mapping...
or
WARN: Duplicate Collection role...

I was at first worried that this relates to another problem i'm currently having

http://nhibernate.sourceforge.net/forum/viewtopic.php?t=1596

however I tried deleting a different object that was apparently Duplicated in the mapping and that was fine.

Should I be greatly concerned over these messages or do they come as standard if you are doing a lot of mapping?
Apart from that other problem everything else seems to work okay so I don't understand why i'm being warned, how i'm duplicating mapping (one .xml.hbm per class and none for a subclass (as that mapping is in the baseclass .hbm)) and what potential consequences this "Duplicate Mapping" might have.

Please let me know if you have any data on this as it has me worried.


Top
  
 
 Post subject:
PostPosted: Thu Dec 15, 2005 4:58 pm 
Contributor
Contributor

Joined: Wed May 11, 2005 4:59 pm
Posts: 1766
Location: Prague, Czech Republic
You are probably adding the same hbm.xml twice, maybe you are calling AddAssembly and then AddClass or something like that?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 15, 2005 5:58 pm 
Newbie

Joined: Thu Dec 15, 2005 4:30 pm
Posts: 3
You're spot on. I was adding the assembly then adding the classes individually.

Thank you.
Simon Tamman.


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.