-->
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.  [ 2 posts ] 
Author Message
 Post subject: Getting weird error: should be mapped with insert="fals
PostPosted: Fri Nov 04, 2005 6:09 pm 
Newbie

Joined: Fri Nov 04, 2005 5:40 pm
Posts: 16
Hey recently i get this error:



net.sf.hibernate.MappingException: Repeated column in mapping for class de.cagara.spieleweb.library.Duelle should be mapped with insert="false" update="false": canceled
at net.sf.hibernate.persister.AbstractEntityPersister.checkColumnDuplication(AbstractEntityPersister.java:1016)


i dunno why this happenes.

I guess it has something todo with the folling two mappings but im not sure.
Could you please help me?



Duelle.xml:
<bag name="ergebnisse" inverse="false">
<key column="spiel" />
<one-to-many class="Ergebnisse"/>
</bag>


Ergebnisse.xml:
<many-to-one name="duelle" column="spiel" class="Duelle" />


Top
 Profile  
 
 Post subject:
PostPosted: Sat Nov 05, 2005 5:54 am 
Expert
Expert

Joined: Thu Jan 29, 2004 2:31 am
Posts: 362
Location: Switzerland, Bern
Hi

This means that there's a property mapped twixe in the class Duelle. If you don't find it, show the whole mapping of Duelle.

HTH
Ernst


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.