mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-12 22:41:35 +00:00
#2153 - QueryBeans: OneToMany Map property is handled as PScalar instead of TQAssocBean
This commit is contained in:
1 parent
b3d439ed11
commit
ab9cdd8f5b
6 files changed
+78
-16
No files matched your search
+9
@@ -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()));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user