You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (Arrays.binarySearch(subtypeIndexes, ((Number) tuple[classMappingIndex]).intValue()) >= 0) {
Details: The classMappingIndex not present in the tuple corresponds to a "class type" select expression related to the Bs collection. That's why I think it's related to @EntityViewInheritance
The text was updated successfully, but these errors were encountered:
For some unknown reason a classMappingIndex sometimes
points to a non-present field in the tuple (filtered
via fetches mechanism). The correct fix should be somewhere
else but that this is probably good enough - just don't
perfomr any tuple transformation for non-present fields.
Also, fix a small bug in hasSubFetches. The wrongly
implemented equality check lead to overfetching.
I don't have a simple reproducer for this but the situation is roughly following:
@EntityViewInheritance
definedEntityViewSetting
withfetches
which don't contain the Bs collectionresultList
Expected: The query executes ok.
Actual: NPE in
blaze-persistence/entity-view/impl/src/main/java/com/blazebit/persistence/view/impl/objectbuilder/transformator/TupleTransformatorFactory.java
Line 135 in 08793f4
Details: The
classMappingIndex
not present in thetuple
corresponds to a "class type" select expression related to the Bs collection. That's why I think it's related to@EntityViewInheritance
The text was updated successfully, but these errors were encountered: