Users don't think

git-svn-id: https://svn.jboss.org/repos/hibernate/trunk/Hibernate3/doc@7382 1b8cb986-b30d-0410-93ca-fae66ebed9b2
This commit is contained in:
Christian Bauer 2005-07-06 12:12:01 +00:00
parent b55cb9d79f
commit 505fbe0abf

View File

@ -216,7 +216,7 @@
</sect2> </sect2>
<sect2 id="inheritance-tableperconcrete" revision="1"> <sect2 id="inheritance-tableperconcrete" revision="2">
<title>Table per concrete class</title> <title>Table per concrete class</title>
<para> <para>
@ -243,8 +243,8 @@
</class>]]></programlisting> </class>]]></programlisting>
<para> <para>
Three tables are involved. Each table defines columns for all properties Three tables are involved for the subclasses. Each table defines columns for
of the class, including inherited properties. all properties of the class, including inherited properties.
</para> </para>
<para> <para>
@ -255,7 +255,14 @@
the primary key seed has to be shared accross all unioned subclasses the primary key seed has to be shared accross all unioned subclasses
of a hierarchy. of a hierarchy.
</para> </para>
<para>
If your superclass is abstract, map it with <literal>abstract="true"</literal>.
Of course, if it is not abstract, an additional table (defaults to
<literal>PAYMENT</literal> in the example above) is needed to hold instances
of the superclass.
</para>
</sect2> </sect2>
<sect2 id="inheritance-tableperconcreate-polymorphism"> <sect2 id="inheritance-tableperconcreate-polymorphism">