[hibernate-issues] [Hibernate-JIRA] Created: (HHH-4074) Polymorphic queries avoid with polymorphism="explicit" in hbm.xml file doesn't work

Radics Laszlo (JIRA) noreply at atlassian.com
Fri Aug 7 07:50:11 EDT 2009


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="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

-- 
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