-->
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.  [ 1 post ] 
Author Message
 Post subject: duplicate import
PostPosted: Wed Mar 17, 2004 9:01 am 
Newbie

Joined: Wed Mar 17, 2004 8:50 am
Posts: 1
Recently there have been some posts about "duplicate error" for which apparently a solution has been found. However, mine is still penetrating me.

I have a single mapping file:

hibernate.hbm.xml
---------------------------------------------------------------------------------
<hibernate-mapping>

<class name="GFA.Experten.Experte" table="experten">
<id name="expertennr" type="integer" unsaved-value="0">
<generator class="native"/>
</id>
<property name="name" type="string"/>
<property name="vorname" type="string"/>
<property name="behoerde" type="string"/>
<property name="email" type="string"/>
<property name="passwort" type="string"/>
</class>

<class name="GFA.Experten.Zuordnung" table="experten_panel">
<id name="panelnr" type="integer" unsaved-value="0">
<generator class="native"/>
</id>
<property name="gfanr" type="integer"/>
<property name="expertennr" type="integer"/>
</class>

<class name="GFA.Pruefkriterien.Zuordnung" table="fragebogen_pruefkriterien">
<id name="zuordnungnr" type="integer" unsaved-value="0">
<generator class="native"/>
</id>
<property name="vorschriftnr" type="integer"/>
<property name="kriteriumnr" type="integer"/>
</class>

</hibernate-mapping>
---------------------------------------------------------------------------------

The problem is that as soon as the third class is mapped I get the "dupplicate error", supprisingly for the first class ("...Experte") and regardless of the use of the distinct fully-qualified class names. When I comment the last class out everything works fine. I suppose it has something to do with last two classes having identical class names ("Zuordnung").

BTW: I use Hibernate 2.1.2!

Any ideas?

Michael


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

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.