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:
parent
510ac75c51
commit
7082b8b03f
|
@ -208,7 +208,7 @@
|
||||||
</sect2>
|
</sect2>
|
||||||
|
|
||||||
<sect2 id="mapping-declaration-class" revision="3">
|
<sect2 id="mapping-declaration-class" revision="3">
|
||||||
<title>class, dynamic-class</title>
|
<title>class</title>
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
You may declare a persistent class using the <literal>class</literal> element:
|
You may declare a persistent class using the <literal>class</literal> element:
|
||||||
|
@ -267,8 +267,9 @@
|
||||||
<calloutlist>
|
<calloutlist>
|
||||||
<callout arearefs="class1">
|
<callout arearefs="class1">
|
||||||
<para>
|
<para>
|
||||||
<literal>name</literal>: The fully qualified Java class name of the persistent class
|
<literal>name</literal> (optional): The fully qualified Java class name of the
|
||||||
(or interface).
|
persistent class (or interface). If this attribute is missing, it is assumed
|
||||||
|
that the mapping is for a non-POJO entity.
|
||||||
</para>
|
</para>
|
||||||
</callout>
|
</callout>
|
||||||
<callout arearefs="class2">
|
<callout arearefs="class2">
|
||||||
|
@ -369,12 +370,11 @@
|
||||||
</callout>
|
</callout>
|
||||||
<callout arearefs="class17">
|
<callout arearefs="class17">
|
||||||
<para>
|
<para>
|
||||||
<literal>entity-name</literal> (optional): Hibernate3 supports class-less persistence:
|
<literal>entity-name</literal> (optional): Hibernate3 allows a class to be mapped
|
||||||
use the <literal><dynamic-class></literal> instead of a <literal><class></literal>
|
multiple times (to different tables, potentially), and allows entity mappings that
|
||||||
mapping and an <literal>entity-name</literal> attribute instead of a class name. This
|
are represented by Maps or XML at the java level. In these cases, you should
|
||||||
allows you to implement your domain model using maps of maps or any other dynamic
|
provide an explicit arbitrary name for the entity. See
|
||||||
approach. See <xref linkend="persistent-classes-dynamic"/> for more information.
|
<xref linkend="persistent-classes-dynamic"/> for more information.
|
||||||
|
|
||||||
</para>
|
</para>
|
||||||
</callout>
|
</callout>
|
||||||
<callout arearefs="class18">
|
<callout arearefs="class18">
|
||||||
|
|
|
@ -319,7 +319,7 @@ public class DomesticCat extends Cat {
|
||||||
|
|
||||||
<programlisting><![CDATA[<hibernate-mapping>
|
<programlisting><![CDATA[<hibernate-mapping>
|
||||||
|
|
||||||
<dynamic-class entity-name="TestMap">
|
<class entity-name="TestMap">
|
||||||
|
|
||||||
<id name="id"
|
<id name="id"
|
||||||
type="long"
|
type="long"
|
||||||
|
@ -347,7 +347,7 @@ public class DomesticCat extends Cat {
|
||||||
<one-to-many class="TestMap"/>
|
<one-to-many class="TestMap"/>
|
||||||
</bag>
|
</bag>
|
||||||
|
|
||||||
</dynamic-class>
|
</class>
|
||||||
|
|
||||||
</hibernate-mapping>]]></programlisting>
|
</hibernate-mapping>]]></programlisting>
|
||||||
|
|
||||||
|
@ -382,7 +382,7 @@ s.close();]]></programlisting>
|
||||||
</sect1>
|
</sect1>
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
TODO: Document user-extension framework in the property and proxy package
|
TODO: Document user-extension framework in the property and proxy packages
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
</chapter>
|
</chapter>
|
||||||
|
|
Loading…
Reference in New Issue