identity not allowed in union subclass hierarchy

git-svn-id: https://svn.jboss.org/repos/hibernate/trunk/Hibernate3/doc@6637 1b8cb986-b30d-0410-93ca-fae66ebed9b2
This commit is contained in:
Emmanuel Bernard 2005-05-02 13:40:33 +00:00
parent 70292fcb03
commit 92359983cc
1 changed files with 6 additions and 3 deletions

View File

@ -213,7 +213,7 @@
</sect2>
<sect2 id="inheritance-tableperconcrete">
<sect2 id="inheritance-tableperconcrete" revision="1">
<title>Table per concrete class</title>
<para>
@ -223,7 +223,7 @@
<programlisting><![CDATA[<class name="Payment">
<id name="id" type="long" column="PAYMENT_ID">
<generator class="native"/>
<generator class="sequence"/>
</id>
<property name="amount" column="AMOUNT"/>
...
@ -247,7 +247,10 @@
<para>
The limitation of this approach is that if a property is mapped on the
superclass, the column name must be the same on all subclass tables.
(We might relax this in a future release of Hibernate.)
(We might relax this in a future release of Hibernate.) The identity
generator strategy is not allowed in union subclass inheritance, indeed
the primary key seed has to be shared accross all unioned subclasses
of a hierarchy.
</para>
</sect2>