OpenUI5 supports the following model implementations for consuming data services using an OData protocol:
sap.ui.model.odata.v4.ODataModel for OData services using the OData V4 protocol
sap.ui.model.odata.v2.ODataModel for OData services using the OData V2 protocol
sap.ui.model.odata.ODataModel for 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.
sap.ui.model.odata.v4.ODataModel is the model implementation for consuming an OData V4 service.