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
|