From f2cdf64b40980186d75bea9a941223dfe553fc37 Mon Sep 17 00:00:00 2001 From: Emmanuel Bernard Date: Mon, 9 May 2005 09:26:46 +0000 Subject: [PATCH] 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 --- reference/en/modules/basic_mapping.xml | 4 ++-- reference/en/modules/collection_mapping.xml | 2 +- reference/en/modules/session_api.xml | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/reference/en/modules/basic_mapping.xml b/reference/en/modules/basic_mapping.xml index 05deda7dea..0735044266 100644 --- a/reference/en/modules/basic_mapping.xml +++ b/reference/en/modules/basic_mapping.xml @@ -1493,10 +1493,10 @@ Setting a value of the cascade attribute to any meaningful value other than none will propagate certain operations to the associated object. The meaningful values are the names of Hibernate's basic - operations, create, merge, delete, save-update, evict, replicate, lock, + operations, persist, merge, delete, save-update, evict, replicate, lock, refresh, as well as the special values delete-orphan and all and comma-separated combinations of operation - names, for example, cascade="create,merge,evict" or + names, for example, cascade="persist,merge,evict" or cascade="all,delete-orphan". See for a full explanation. diff --git a/reference/en/modules/collection_mapping.xml b/reference/en/modules/collection_mapping.xml index 174a56d4ad..aa9ac4307a 100644 --- a/reference/en/modules/collection_mapping.xml +++ b/reference/en/modules/collection_mapping.xml @@ -560,7 +560,7 @@ kittens = cat.getKittens(); // Okay, kittens collection is a Set + cascade="persist"> diff --git a/reference/en/modules/session_api.xml b/reference/en/modules/session_api.xml index 0fc5d87813..ebfbcdbfd8 100644 --- a/reference/en/modules/session_api.xml +++ b/reference/en/modules/session_api.xml @@ -1070,13 +1070,13 @@ tx.commit(); // flush occurs]]> document. For example: - ]]> + ]]> Cascade styles my be combined: - ]]> + ]]> You may even use cascade="all" to specify that all @@ -1115,7 +1115,7 @@ tx.commit(); // flush occurs]]> 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 cascade="create,merge,save-update". + yourself some typing, consider using cascade="persist,merge,save-update".