Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Critical
-
Resolution: Fixed
-
Affects Version/s: 1.2
-
Fix Version/s: 1.3 rc1
-
Component/s: JDO queries
-
Labels:None
-
Number of attachments :
Description
When executing a query for the base class of a extended class hierarchy under some conditions Castor returns entities of the wrong class.
If we have a class hierarchy with following entities:
class BaseEntity { }
class ExtendedEntity extends BaseEntity { }
According to the data in the database the query:
select o from BaseEntity o;
should return:
1. BaseEntity
2. ExtendedEntity
3. BaseEntity
but what the query returns is:
1. BaseEntity
2. ExtendedEntity
3. ExtendedEntity
Final patch including test case.