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:
parent
b55cb9d79f
commit
505fbe0abf
|
@ -216,7 +216,7 @@
|
|||
|
||||
</sect2>
|
||||
|
||||
<sect2 id="inheritance-tableperconcrete" revision="1">
|
||||
<sect2 id="inheritance-tableperconcrete" revision="2">
|
||||
<title>Table per concrete class</title>
|
||||
|
||||
<para>
|
||||
|
@ -243,8 +243,8 @@
|
|||
</class>]]></programlisting>
|
||||
|
||||
<para>
|
||||
Three tables are involved. Each table defines columns for all properties
|
||||
of the class, including inherited properties.
|
||||
Three tables are involved for the subclasses. Each table defines columns for
|
||||
all properties of the class, including inherited properties.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
|
@ -255,7 +255,14 @@
|
|||
the primary key seed has to be shared accross all unioned subclasses
|
||||
of a hierarchy.
|
||||
</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 id="inheritance-tableperconcreate-polymorphism">
|
||||
|
|
Loading…
Reference in New Issue