#2153 - QueryBeans: OneToMany Map property is handled as PScalar instead of TQAssocBean

This commit is contained in:
Robin Bygrave committed 2021-02-10 13:52:29 +13:00
1 parent b3d439ed11
commit ab9cdd8f5b
6 files changed
+78 -16

No files matched your search

@@ -330,6 +330,15 @@ class ProcessingContext implements Constants {
}
}
}
} else if (typeArguments.size() == 2) {
TypeMirror argType = typeArguments.get(1);
if (argType.getKind() == TypeKind.WILDCARD) {
argType = ((WildcardType) argType).getExtendsBound();
}
Element argElement = typeUtils.asElement(argType);
if (isEntityOrEmbedded(argElement)) {
return createPropertyTypeAssoc(typeDef(argElement.asType()));
}
}
}