[hibernate-issues] [Hibernate-JIRA] Updated: (HHH-4074) Polymorphic queries avoid with polymorphism="explicit" in hbm.xml file doesn't work
Gail Badner (JIRA)
noreply at atlassian.com
Fri Oct 22 17:38:47 EDT 2010
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-4074?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gail Badner updated HHH-4074:
-----------------------------
Description:
hbm.xml:
<hibernate-mapping default-cascade="none">
<class name="AncestorImpl" table="ANCESTOR" dynamic-insert="false" dynamic-update="false" polymorphism="explicit">
<id name="id" type="java.lang.Long" unsaved-value="null">
<column name="ID" sql-type="NUMBER(19)"/>
<generator class="sequence">
<param name="sequence">ANCESTOR_SEQ</param>
</generator>
</id>
<property name="top" type="java.lang.Long">
<column name="TOP" not-null="true" unique="false" sql-type="NUMBER(19)"/>
</property>
<union-subclass name="DescendantImpl" table="DESCENDANT" dynamic-insert="false" dynamic-update="false" abstract="false">
<property name="bottom" type="java.lang.Long">
<column name="BOTTOM" not-null="true" unique="false" sql-type="NUMBER(19)"/>
</property>
</union-subclass>
</class>
</hibernate-mapping>
hql: "from AncestorImpl" fetch both ancestor and descendant rows
was:
hbm.xml:
<hibernate-mapping default-cascade="none">
<class name="hu.raiffeisen.aps.soa.entity.collateral.AncestorImpl" table="ANCESTOR" dynamic-insert="false" dynamic-update="false" polymorphism="explicit">
<id name="id" type="java.lang.Long" unsaved-value="null">
<column name="ID" sql-type="NUMBER(19)"/>
<generator class="sequence">
<param name="sequence">ANCESTOR_SEQ</param>
</generator>
</id>
<property name="top" type="java.lang.Long">
<column name="TOP" not-null="true" unique="false" sql-type="NUMBER(19)"/>
</property>
<union-subclass name="hu.raiffeisen.aps.soa.entity.collateral.DescendantImpl" table="DESCENDANT" dynamic-insert="false" dynamic-update="false" abstract="false">
<property name="bottom" type="java.lang.Long">
<column name="BOTTOM" not-null="true" unique="false" sql-type="NUMBER(19)"/>
</property>
</union-subclass>
</class>
</hibernate-mapping>
hql: "from AncestorImpl" fetch both ancestor and descendant rows
> Polymorphic queries avoid with polymorphism="explicit" in hbm.xml file doesn't work
> -----------------------------------------------------------------------------------
>
> Key: HHH-4074
> URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-4074
> Project: Hibernate Core
> Issue Type: Bug
> Components: core
> Affects Versions: 3.3.2
> Environment: hibernate 3.3.2
> Oracle 9i
> Reporter: Radics Laszlo
>
> hbm.xml:
> <hibernate-mapping default-cascade="none">
> <class name="AncestorImpl" table="ANCESTOR" dynamic-insert="false" dynamic-update="false" polymorphism="explicit">
> <id name="id" type="java.lang.Long" unsaved-value="null">
> <column name="ID" sql-type="NUMBER(19)"/>
> <generator class="sequence">
> <param name="sequence">ANCESTOR_SEQ</param>
> </generator>
> </id>
> <property name="top" type="java.lang.Long">
> <column name="TOP" not-null="true" unique="false" sql-type="NUMBER(19)"/>
> </property>
> <union-subclass name="DescendantImpl" table="DESCENDANT" dynamic-insert="false" dynamic-update="false" abstract="false">
> <property name="bottom" type="java.lang.Long">
> <column name="BOTTOM" not-null="true" unique="false" sql-type="NUMBER(19)"/>
> </property>
> </union-subclass>
> </class>
> </hibernate-mapping>
> hql: "from AncestorImpl" fetch both ancestor and descendant rows
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the hibernate-issues
mailing list