Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
4.1
-
Patch
-
Description
Given an inheritance tree such as (qualifiers are in parentheses):
abstract class A
concrete class B extends A (type = 0)
abstract class C extends A
concrete class D extends C (type = 1)
concrete class E extends C (type=2)
and single-table inheritance.
When querying on class A and results include a row of type D, EntityInheritanceTree will return C as the matching entity. In fact, even if the results include a row of type B, if entityMatchingRow will return C if it is checked before entity B.
Also, qualifierForEntityAndSubclasses will return a null qualifier for type C when it should really return (type =1) or (type = 2).