[OLINGO-1395] Fixed parsing error when ReturnType contains Annotation

This commit is contained in:
Daniel Fernández 2019-09-10 11:56:58 +00:00
parent 21d874d255
commit 60d5adaff3
2 changed files with 8 additions and 1 deletions

View File

@ -71,6 +71,9 @@ class ClientCsdlReturnType extends CsdlReturnType implements Serializable {
if (srid != null) {
returnType.setSrid(SRID.valueOf(srid));
}
} else if ("Annotation".equals(jp.getCurrentName())) {
jp.nextToken();
returnType.getAnnotations().add(jp.readValueAs(ClientCsdlAnnotation.class));
}
}
}

View File

@ -138,7 +138,11 @@
<ReturnType Type="SEPMRA_SO_MAN2.I_DraftAdministrativeDataType"/>
</Action>
<Action Name="UARTString" IsBound="false">
<ReturnType Type="Edm.String"/>
<ReturnType Type="Edm.String">
<Annotation Term="Core.Description">
<String>The description for this return type</String>
</Annotation>
</ReturnType>
</Action>
<Function Name="_FC_RTTimeOfDay_" IsBound="true" IsComposable="true">
<Parameter Name="ParameterTimeOfDay" Type="Edm.TimeOfDay" Nullable="false"/>