removed dynamic-class

git-svn-id: https://svn.jboss.org/repos/hibernate/trunk/Hibernate3/doc@5779 1b8cb986-b30d-0410-93ca-fae66ebed9b2
This commit is contained in:
Gavin King 2005-02-19 07:47:15 +00:00
parent 510ac75c51
commit 7082b8b03f
2 changed files with 23 additions and 23 deletions

View File

@ -208,7 +208,7 @@
</sect2>
<sect2 id="mapping-declaration-class" revision="3">
<title>class, dynamic-class</title>
<title>class</title>
<para>
You may declare a persistent class using the <literal>class</literal> element:
@ -267,8 +267,9 @@
<calloutlist>
<callout arearefs="class1">
<para>
<literal>name</literal>: The fully qualified Java class name of the persistent class
(or interface).
<literal>name</literal> (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.
</para>
</callout>
<callout arearefs="class2">
@ -369,12 +370,11 @@
</callout>
<callout arearefs="class17">
<para>
<literal>entity-name</literal> (optional): Hibernate3 supports class-less persistence:
use the <literal>&lt;dynamic-class&gt;</literal> instead of a <literal>&lt;class&gt;</literal>
mapping and an <literal>entity-name</literal> attribute instead of a class name. This
allows you to implement your domain model using maps of maps or any other dynamic
approach. See <xref linkend="persistent-classes-dynamic"/> for more information.
<literal>entity-name</literal> (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
<xref linkend="persistent-classes-dynamic"/> for more information.
</para>
</callout>
<callout arearefs="class18">

View File

@ -319,35 +319,35 @@ public class DomesticCat extends Cat {
<programlisting><![CDATA[<hibernate-mapping>
<dynamic-class entity-name="TestMap">
<class entity-name="TestMap">
<id name="id"
type="long"
column="ID">
type="long"
column="ID">
<generator class="sequence"/>
</id>
<property name="name"
column="NAME"
type="string"/>
column="NAME"
type="string"/>
<property name="address"
column="ADDRESS"
type="string"/>
column="ADDRESS"
type="string"/>
<many-to-one name="parent"
column="PARENT_ID"
class="TestMap"/>
column="PARENT_ID"
class="TestMap"/>
<bag name="children"
inverse="true"
lazy="false"
cascade="all">
inverse="true"
lazy="false"
cascade="all">
<key column="PARENT_ID"/>
<one-to-many class="TestMap"/>
</bag>
</dynamic-class>
</class>
</hibernate-mapping>]]></programlisting>
@ -382,7 +382,7 @@ s.close();]]></programlisting>
</sect1>
<para>
TODO: Document user-extension framework in the property and proxy package
TODO: Document user-extension framework in the property and proxy packages
</para>
</chapter>