Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp
[b]Hibernate version:3.2.0
[b]Name and version of the database you are using:mysql
Hi,
I am new to hibernate. My natural-id is a combination of a column from a component and a many-to-one field.
	<component name="nameValuePair"
			class="xxx.sss.NameValuePair">
			<property name="name" type="string">
				<column name="nvname" not-null="true" length="255"/>
			</property>
			<property name="value" type="string">
				<column name="nvvalue" not-null="false" length="255"/>
			</property>
		</component>
<many-to-one name="field"
			class="xxx.yyy.Field" cascade="none"
			  fetch="join">
			<column name="field_id" />
		</many-to-one>
How do i map the natural-id? Following does not work.
<natural-id> 
   <property name="field"/> 
   <property name="nvname" not-null="true" length="255"/>
</natural-id> 
thank you.
I figured it out. - thanks