[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-4074) Polymorphic queries avoid with polymorphism="explicit" in hbm.xml file doesn't work
Radics Laszlo (JIRA)
noreply at atlassian.com
Mon Aug 10 05:24:14 EDT 2009
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-4074?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=33736#action_33736 ]
Radics Laszlo commented on HHH-4074:
------------------------------------
Maybe i was not so clear. So I want to avoid "Polymorphic queries" hibernate feature, but i couldn't, because this bug.
> 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