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

Karoly Gacsal (JIRA) noreply at atlassian.com
Wed Oct 21 05:34:29 EDT 2009


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