SAPUI5 supports the following model implementations for consuming data services using an OData protocol:
-
sap.ui.model.odata.v4.ODataModelfor OData services using the OData V4 protocol -
sap.ui.model.odata.v2.ODataModelfor OData services using the OData V2 protocol -
sap.ui.model.odata.ODataModelfor OData services using the OData V2 protocol (deprecated, outdated – do not use)
We recommend using an OData V4 service and the OData V4 model for communication with an external data source. OData V4 has been standardized by OASIS and has many features not included in OData V2. For more information, see OData V4 Model.