[OLINGO-1167] Reference with fully qualified name

This commit is contained in:
Simon Ammer 2017-08-21 14:26:03 +02:00 committed by mibo
parent 1cb2907fcc
commit ce5028d24f
1 changed files with 9 additions and 1 deletions

View File

@ -109,7 +109,15 @@ public class EdmTypeInfo {
fullQualifiedName = new FullQualifiedName(namespace, typeName);
primitiveType = EdmPrimitiveTypeKind.getByName(typeName);
try {
if (namespace.equals("Edm")) {
primitiveType = EdmPrimitiveTypeKind.valueOf(typeName);
} else {
primitiveType = EdmPrimitiveTypeKind.valueOf(namespace + "." + typeName);
}
} catch (final IllegalArgumentException e) {
primitiveType = null;
}
if (primitiveType == null && edm != null) {
typeDefinition = edm.getTypeDefinition(fullQualifiedName);