chache the deprecated create cascade to persist

git-svn-id: https://svn.jboss.org/repos/hibernate/trunk/Hibernate3/doc@6735 1b8cb986-b30d-0410-93ca-fae66ebed9b2
This commit is contained in:
Emmanuel Bernard 2005-05-09 09:26:46 +00:00
parent dd9ee5ff13
commit f2cdf64b40
3 changed files with 6 additions and 6 deletions

View File

@ -1493,10 +1493,10 @@
Setting a value of the <literal>cascade</literal> attribute to any meaningful
value other than <literal>none</literal> will propagate certain operations to the
associated object. The meaningful values are the names of Hibernate's basic
operations, <literal>create, merge, delete, save-update, evict, replicate, lock,
operations, <literal>persist, merge, delete, save-update, evict, replicate, lock,
refresh</literal>, as well as the special values <literal>delete-orphan</literal>
and <literal>all</literal> and comma-separated combinations of operation
names, for example, <literal>cascade="create,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"/>
for a full explanation.
</para>

View File

@ -560,7 +560,7 @@ kittens = cat.getKittens(); // Okay, kittens collection is a Set
<programlisting><![CDATA[<array name="addresses"
table="PersonAddress"
cascade="create">
cascade="persist">
<key column="personId"/>
<list-index column="sortOrder"/>
<many-to-many column="addressId" class="Address"/>

View File

@ -1070,13 +1070,13 @@ tx.commit(); // flush occurs]]></programlisting>
document. For example:
</para>
<programlisting><![CDATA[<one-to-one name="person" cascade="create"/>]]></programlisting>
<programlisting><![CDATA[<one-to-one name="person" cascade="persist"/>]]></programlisting>
<para>
Cascade styles my be combined:
</para>
<programlisting><![CDATA[<one-to-one name="person" cascade="create,delete,lock"/>]]></programlisting>
<programlisting><![CDATA[<one-to-one name="person" cascade="persist,delete,lock"/>]]></programlisting>
<para>
You may even use <literal>cascade="all"</literal> to specify that <emphasis>all</emphasis>
@ -1115,7 +1115,7 @@ tx.commit(); // flush occurs]]></programlisting>
<para>
Otherwise, you might not need cascade at all. But if you think that you will often be
working with the parent and children together in the same transaction, and you want to save
yourself some typing, consider using <literal>cascade="create,merge,save-update"</literal>.
yourself some typing, consider using <literal>cascade="persist,merge,save-update"</literal>.
</para>
</listitem>
</itemizedlist>