From 7082b8b03f31f9ff4e9abb79ccbd952b9895665f Mon Sep 17 00:00:00 2001 From: Gavin King Date: Sat, 19 Feb 2005 07:47:15 +0000 Subject: [PATCH] removed dynamic-class git-svn-id: https://svn.jboss.org/repos/hibernate/trunk/Hibernate3/doc@5779 1b8cb986-b30d-0410-93ca-fae66ebed9b2 --- reference/en/modules/basic_mapping.xml | 18 ++++++------- reference/en/modules/persistent_classes.xml | 28 ++++++++++----------- 2 files changed, 23 insertions(+), 23 deletions(-) diff --git a/reference/en/modules/basic_mapping.xml b/reference/en/modules/basic_mapping.xml index cd6f181c97..f728d79441 100644 --- a/reference/en/modules/basic_mapping.xml +++ b/reference/en/modules/basic_mapping.xml @@ -208,7 +208,7 @@ - class, dynamic-class + class You may declare a persistent class using the class element: @@ -267,8 +267,9 @@ - name: The fully qualified Java class name of the persistent class - (or interface). + name (optional): The fully qualified Java class name of the + persistent class (or interface). If this attribute is missing, it is assumed + that the mapping is for a non-POJO entity. @@ -369,12 +370,11 @@ - entity-name (optional): Hibernate3 supports class-less persistence: - use the <dynamic-class> instead of a <class> - mapping and an entity-name attribute instead of a class name. This - allows you to implement your domain model using maps of maps or any other dynamic - approach. See for more information. - + entity-name (optional): Hibernate3 allows a class to be mapped + multiple times (to different tables, potentially), and allows entity mappings that + are represented by Maps or XML at the java level. In these cases, you should + provide an explicit arbitrary name for the entity. See + for more information. diff --git a/reference/en/modules/persistent_classes.xml b/reference/en/modules/persistent_classes.xml index b10ef9e4e8..e8fe1bebc8 100644 --- a/reference/en/modules/persistent_classes.xml +++ b/reference/en/modules/persistent_classes.xml @@ -319,35 +319,35 @@ public class DomesticCat extends Cat { - + + type="long" + column="ID"> + column="NAME" + type="string"/> + column="ADDRESS" + type="string"/> + column="PARENT_ID" + class="TestMap"/> + inverse="true" + lazy="false" + cascade="all"> - + ]]> @@ -382,7 +382,7 @@ s.close();]]> - TODO: Document user-extension framework in the property and proxy package + TODO: Document user-extension framework in the property and proxy packages