Dear Gurus,
I would like to have a clear picture on OData version support of the UI5 libraries. Trying to find the truth for a while, but can't really understand what is the current state and the UI5 plans regarding OData processing.
People explain on various blogs/forums, that SAPUI5 supports only OData v2.
Here is an article that SAP GateWay is able to produce OData v3 annotations, which can be used in asp.net for example:
I'm wondering, that SAPUI5 libraries are not understanding this OData v3 annotation, only asp.net clients ?
We have officially a class for OData v2 in SAPUI5 library: sap.ui.model.odata.v2.ODataModel
There is a parameter, what you can set provide, here is the description:
maxDataServiceVersion? (default = '2.0') please use the following string format e.g. '2.0' or '3.0'. OData version supported by the ODataModel: '2.0',
Does it mean, that the class is able to understand OData v3 responses(maxDataServiceVersion=3.0), but sends request with OData v2 to the server (DataServiceVersion=2.0) ?
(official OData reference here: ->section 7.1)
Here is another bit of description, which drives me in the deep of not understanding:
Class sap.ui.model.odata.ODataMetaModel which relates to sap.ui.model.odata.ODataModel
This starts with the following: Implementation of an OData meta model which offers a unified access to both OData v2 meta data and v4 annotations.
Based on this SAPUI5 supports V2 and v4 annotations? As per my understanding OData v4 is not backward compatible with older versions. Does it mean SAP GW is running OData v2 v3 and v4 endpoints parallel for the same service, and the results are merged in SAPUI5 ?
I would highly appreciate, if someone could help me make it clear.
Thanks, Attila