I got troubles with next mapping file:
Code:
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD 2.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd" >
<hibernate-mapping>
<!--
Created by Middlegen Hibernate plugin
http://boss.bekk.no/boss/middlegen/
http://hibernate.sourceforge.net/
-->
<class
name="First"
table="FIRST"
>
<composite-id name="comp_id" class="FirstPK">
<key-property
name="Id"
column="ID"
type="java.math.BigDecimal"
length="22"
/>
<!-- bi-directional many-to-one association to Second -->
<key-many-to-one
name="second"
class="Second"
column="TYPEE"
/>
<!-- bi-directional many-to-one association to Third -->
<key-many-to-one
name="third"
class="Third"
column="TYPEE"
/>
</composite-id>
<!-- associations -->
</class>
</hibernate-mapping>
the error is next:
HibernateException: net.sf.hibernate.MappingException: Repeated column in mapping for class First should be mapped with insert="false" update="false": TYPEE
How I can mapped it ?