in odata2-annotation-processor/annotation-processor-core/src/main/java/org/apache/olingo/odata2/annotation/processor/core/edm/AnnotationEdmProvider.java [537:567]
private EdmType getEdmType(final Class<?> type) {
if (type == String.class) {
return EdmType.STRING;
} else if (type == boolean.class || type == Boolean.class) {
return EdmType.BOOLEAN;
} else if (type == byte.class || type == Byte.class) {
return EdmType.SBYTE;
} else if (type == short.class || type == Short.class) {
return EdmType.INT16;
} else if (type == int.class || type == Integer.class) {
return EdmType.INT32;
} else if (type == long.class || type == Long.class) {
return EdmType.INT64;
} else if (type == double.class || type == Double.class) {
return EdmType.DOUBLE;
} else if (type == float.class || type == Float.class) {
return EdmType.SINGLE;
} else if (type == BigInteger.class || type == BigDecimal.class) {
return EdmType.DECIMAL;
} else if (type == Byte[].class || type == byte[].class) {
return EdmType.BINARY;
} else if (type == Date.class) {
return EdmType.DATE_TIME;
} else if (type == Calendar.class) {
return EdmType.DATE_TIME_OFFSET;
} else if (type == UUID.class) {
return EdmType.GUID;
} else {
throw new UnsupportedOperationException("Not yet supported type '" + type + "'.");
}
}