[hibernate-issues] [Hibernate-JIRA] Updated: (HHH-4511) Problems with polymorphic queries with SINGLE_TABLE inheritance strategy

Gail Badner (JIRA) noreply at atlassian.com
Mon Jan 10 23:20:05 EST 2011


     [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-4511?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gail Badner updated HHH-4511:
-----------------------------

    Assignee: Adam Warski

Adam, Please assign this issue as appropriate.
Thanks,
Gail

> Problems with polymorphic queries with SINGLE_TABLE inheritance strategy
> ------------------------------------------------------------------------
>
>                 Key: HHH-4511
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-4511
>             Project: Hibernate Core
>          Issue Type: Bug
>          Components: envers
>    Affects Versions: 3.5.0.Beta-1
>         Environment: envers 1.2.1 
> Hibernate 3.3.2
>            Reporter: Karoly Gacsal
>            Assignee: Adam Warski
>         Attachments: ChildAuditing.java
>
>
> Inheritance strategy is SINGLE_TABLE (discriminator).
> When I query for ParentType I do not get ChildType instances in the result, but ParentType instances.
> I checked the problem against envers 1.2.1/Hibernate 3.3.2 and against Hibernate 3.5.0.Beta-1 too.
> The testcase "\src\test\java\org\hibernate\envers\test\integration\inheritance\single\ChildAuditing.java"
> passes, but when I change the two sides of the equals method in testPolymorphicQuery()'s second assert the testcase fails, because
> the expected result is a ChildEntity, but in the result we get an instance of ParentEntity.
> Attached you can find the testcases changed by me.

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