Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
3.0M5
-
None
Description
Looks like using paginated queries results in exceptions and generally incorrect behavior when fetching on a superclass in case of single table inheritance. (This is not specific to single-table, rather this is the case we can easily test). The problem is PersistentListHelper inner class of IncrementalFaultList:
boolean incorrectObjectType(Object object) {
...
if (!persistent.getObjectId().getEntityName().equals(rootEntity.getName()))
{ return true; } return false;
}
Comparing entity names is not appropriate as an object can be a subclass with a different entity name.