* annotation, "string" in all other cases
*/
public static String getODataType(final Class<?> clazz, final String fieldName) {
final Field field = findField(clazz, fieldName);
if (field != null) {
final ODataType oDataType = field.getAnnotation(ODataType.class);
if (oDataType != null) {
return oDataType.value();
}
}
return "string";
}