Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp
[b]Hibernate version:3.0[/b]
[b]Mapping documents:<hibernate-mapping>
<class name="kh.doc.ejb.impl.Region" table="REGION">
<composite-id>
<key-property name="id" column="REGION_ID"/>
<key-property name ="jobId" column ="J_ID"/>
</composite-id>
<property name ="entityState" column = "E_STATE"/>
<list name = "multiLanguageName">
<key column ="REGION_ID"></key>
<index column = "IND_COLUMN" type = "integer"/>
<composite-element class="kh.doc.ejb.impl.MultiLanguageName">
<property name ="longName" column ="LONG_NAME"/>
<property name ="shortName" column = "SHORT_NAME"/>
<property name ="languageId" column ="Language_ID"/>
</composite-element>
</list>
</class>
</hibernate-mapping>[/b]
[b]Initial SessionFactory creation failed.org.hibernate.MappingException: Foreign key (FK11E531DCC9C9FA10:multiLanguageName [REGION_ID])) must have same number of columns as the referenced primary key (REGION [REGION_ID,J_ID])[/b]