什麼是SAP OData Model Creator

The SAP OData Model Creator is a web site where your OData service metadata is transformed into a Mendix domain model that can be imported into your project.

SAP OData Model Creator是一個網站,可以將OData服務的元數據,轉換成Mendix的領域模型並導入到項目工程中。

OData服務元數據的輸入可以是文件,url或者SAP API hub上的一個服務。

You can generate this domain model by providing your service metadata as a file, URL, or select a service from SAP API Business Hub.

SAP OData model creator的網址:https://sapodatamodelcreator.mendixcloud.com/

https://sapes5.sapdevcenter.com/sap/opu/odata/iwbep/GWSAMPLE_BASIC/$metadata

從上述鏈接下載SAP gateway demo系統的OData服務元數據,保存成本地文件,然後打開SAP OData Model Creator,選擇本地文件:


點擊繼續,會解析出該元數據裏包含的OData信息,

選擇GWSAMPLE_BASIC, 再次點擊continue:

生成.mpk文件:

這個mpk文件用於在Mendix Studio Pro裏開發,後續Jerry會詳細介紹。

要獲取更多Jerry的原創文章,請關注公衆號"汪子熙":