[jboss-cvs] JBossAS SVN: r95268 - projects/docs/enterprise/5.0/Hibernate/Hibernate_Core/en-US.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Wed Oct 21 03:45:20 EDT 2009
Author: laubai
Date: 2009-10-21 03:45:20 -0400 (Wed, 21 Oct 2009)
New Revision: 95268
Modified:
projects/docs/enterprise/5.0/Hibernate/Hibernate_Core/en-US/inheritance_mapping.xml
Log:
Added fixes for PDF build.
Modified: projects/docs/enterprise/5.0/Hibernate/Hibernate_Core/en-US/inheritance_mapping.xml
===================================================================
--- projects/docs/enterprise/5.0/Hibernate/Hibernate_Core/en-US/inheritance_mapping.xml 2009-10-21 07:28:16 UTC (rev 95267)
+++ projects/docs/enterprise/5.0/Hibernate/Hibernate_Core/en-US/inheritance_mapping.xml 2009-10-21 07:45:20 UTC (rev 95268)
@@ -436,11 +436,63 @@
</para>
<para>
- The following table shows the limitations of table per concrete-class
+ The following list shows the limitations of table per concrete-class
mappings, and of implicit polymorphism, in Hibernate.
</para>
+
+ <variablelist>
+ <varlistentry>
+ <term>table per class-heirarchy</term>
+ <term>table per subclass</term>
+ <listitem>
+ <itemizedlist>
+ <listitem><para>Polymorphic many-to-one: <code><many-to-one></code></para></listitem>
+ <listitem><para>Polymorphic one-to-one: <code><one-to-one></code></para></listitem>
+ <listitem><para>Polymorphic one-to-many: <code><one-to-many></code></para></listitem>
+ <listitem><para>Polymorphic many-to-many: <code><many-to-many></code></para></listitem>
+ <listitem><para>Polymorphic <literal>load()</literal> or <literal>get()</literal>: <code>s.get(Payment.class, id)</code></para></listitem>
+ <listitem><para>Polymorphic queries: <code>from Payment p</code></para></listitem>
+ <listitem><para>Polymorphic joins: <code>from Order o join o.payment p</code></para></listitem>
+ </itemizedlist>
+ <para>
+ Outer join fetching is supported.
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>table per concrete-class (union-subclass)</term>
+ <listitem>
+ <itemizedlist>
+ <listitem><para>Polymorphic many-to-one: <code><many-to-one></code></para></listitem>
+ <listitem><para>Polymorphic one-to-one: <code><one-to-one></code></para></listitem>
+ <listitem><para>Polymorphic one-to-many: <code><one-to-many></code> (for <code>inverse="true"</code> only)</para></listitem>
+ <listitem><para>Polymorphic many-to-many: <code><many-to-many></code></para></listitem>
+ <listitem><para>Polymorphic <literal>load()</literal> or <literal>get()</literal>: <code>s.get(Payment.class, id)</code></para></listitem>
+ <listitem><para>Polymorphic queries: <code>from Payment p</code></para></listitem>
+ <listitem><para>Polymorphic joins: <code>from Order o join o.payment p</code></para></listitem>
+ </itemizedlist>
+ <para>
+ Outer join fetching is supported.
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>table per concrete class (implicit polymorphism</term>
+ <listitem>
+ <itemizedlist>
+ <listitem><para>Polymorphic many-to-one: <code><any></code></para></listitem>
+ <listitem><para>Polymorphic many-to-many: <code><many-to-many></code></para></listitem>
+ <listitem><para>Polymorphic <literal>load()</literal> or <literal>get()</literal>: <code>s.createCriteria(Payment.class).add( Restrictions.idEq(id) ).uniqueResult()</code></para></listitem>
+ <listitem><para>Polymorphic queries: <code>from Payment p</code></para></listitem>
+ </itemizedlist>
+ <para>
+ Polymorphic one-to-one, polymorphic one-to-many, polymorphic joins, and outer join fetching are not supported.
+ </para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
- <table frame="topbot">
+ <!--<table frame="topbot">
<title>Features of inheritance mappings</title>
<tgroup cols='9' align='left' colsep='1' rowsep='1'>
<colspec colname='c1' colwidth="1*"/>
@@ -512,7 +564,7 @@
</row>
</tbody>
</tgroup>
- </table>
+ </table>-->
</sect1>
More information about the jboss-cvs-commits
mailing list