From 0d12bf797dde382cbf7df47f12b73d91860cc354 Mon Sep 17 00:00:00 2001 From: Lukas Jungmann Date: Wed, 22 Sep 2021 10:33:52 +0200 Subject: [PATCH] fix wrong collection lookup Signed-off-by: Lukas Jungmann --- .../eclipse/persistence/jaxb/compiler/MappingsGenerator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moxy/org.eclipse.persistence.moxy/src/main/java/org/eclipse/persistence/jaxb/compiler/MappingsGenerator.java b/moxy/org.eclipse.persistence.moxy/src/main/java/org/eclipse/persistence/jaxb/compiler/MappingsGenerator.java index 974d92f3fb0..3d96104cd88 100644 --- a/moxy/org.eclipse.persistence.moxy/src/main/java/org/eclipse/persistence/jaxb/compiler/MappingsGenerator.java +++ b/moxy/org.eclipse.persistence.moxy/src/main/java/org/eclipse/persistence/jaxb/compiler/MappingsGenerator.java @@ -2160,7 +2160,7 @@ private Mapping generateMappingForType(JavaClass theType, String attributeName){ QName schemaType = userDefinedSchemaTypes.get(theType.getQualifiedName()); if (schemaType == null) { - schemaType = helper.getXMLToJavaTypeMap().get(theType); + schemaType = helper.getXMLToJavaTypeMap().get(theType.getName()); } ((Field) mapping.getField()).setSchemaType(schemaType); if(info != null && info.isEnumerationType()) {