doc property-ref, cascade

git-svn-id: https://svn.jboss.org/repos/hibernate/trunk/Hibernate3/doc@7590 1b8cb986-b30d-0410-93ca-fae66ebed9b2
This commit is contained in:
Gavin King 2005-07-21 01:57:46 +00:00
parent 04abf391d1
commit 871d0bad35
1 changed files with 9 additions and 2 deletions

View File

@ -1382,7 +1382,7 @@
</sect2> </sect2>
<sect2 id="mapping-declaration-manytoone" revision="3"> <sect2 id="mapping-declaration-manytoone" revision="4">
<title>many-to-one</title> <title>many-to-one</title>
<para> <para>
@ -1551,7 +1551,8 @@
and <literal>all</literal> and comma-separated combinations of operation and <literal>all</literal> and comma-separated combinations of operation
names, for example, <literal>cascade="persist,merge,evict"</literal> or names, for example, <literal>cascade="persist,merge,evict"</literal> or
<literal>cascade="all,delete-orphan"</literal>. See <xref linkend="objectstate-transitive"/> <literal>cascade="all,delete-orphan"</literal>. See <xref linkend="objectstate-transitive"/>
for a full explanation. for a full explanation. Note that single valued associations (many-to-one and
one-to-one associations) do not support orphan delete.
</para> </para>
<para> <para>
@ -1586,6 +1587,12 @@
map the referenced properties inside a named <literal>&lt;properties&gt;</literal> element. map the referenced properties inside a named <literal>&lt;properties&gt;</literal> element.
</para> </para>
<para>
If the referenced unique key is the property of a component, you may specify a property path:
</para>
<programlisting><![CDATA[<many-to-one name="owner" property-ref="identity.ssn" column="OWNER_SSN"/>]]></programlisting>
</sect2> </sect2>
<sect2 id="mapping-declaration-onetoone" revision="2"> <sect2 id="mapping-declaration-onetoone" revision="2">