当前位置:网站首页>如何用 SAP BTP 平台上的图形建模器创建一个 OData 服务
如何用 SAP BTP 平台上的图形建模器创建一个 OData 服务
2022-06-26 21:18:00 【华为云】
移动后端工具是一组工具,使开发人员能够对 OData 服务建模并生成 Java EE Web 应用程序以实现 OData 服务,以及在预先存在的数据库模式中自动创建必要的数据库表。
在本教程中,您将使用 SAP Business Application Studio 中的 MBT 图形建模器重建 SAP Gateway Demo 系统 (ES5) 上公开可用的 GWSAMPLE_BASIC OData 服务的一小部分。 因此,在进一步的教程中,您可以在其上扩展、连接和构建应用程序。
打开 SAP Business Technology Platform 上的 Business Application Studio,新建一个文件夹:
命令栏里选择 MBT:New OData CSDL document(metadata)
自动生成一个 metadata.csdl.xml 文件。创建一个新的 Complex types:
根据实际业务需要,创建 Entity type,比如 SalesOrder 和 BusinessPartner:
根据实际需要,在图形建模器里,给 entity type 创建 property:
创建一个从 BusinessPartner 到 SalesOrder 的 Navigation Property,上图 Collection 前的 checkbox 记得勾上:
下图展示了从 BusinessPartner 到 SalesOrder 的 navigation 关系:
选择任务:MBT:Create tasks.json file:
为 CloudFoundry Generate OData service:
选择基于 Java EE style 自动生成该 OData 服务的项目代码:
数据库类型,选择 H2 Database type:
选择 metadata.csdl.xml, 点击 Open metadata:
选择运行 task:csdl-to-war
确保看到 Build Success 消息:
对应的 CloudFoundry Java 应用已经处于运行状态了,代表该 OData 服务可以被消费了:
边栏推荐
- 【贝叶斯分类4】贝叶斯网
- 慕课8、服务容错-Sentinel
- Gee: calculate the maximum and minimum values of pixels in the image area
- 12个MySQL慢查询的原因分析
- Arrête d'être un bébé géant.
- Swagger: how to generate beautiful static document description pages
- C: Reverse linked list
- 浏览器事件循环
- 第2章 构建自定义语料库
- [Bayesian classification 2] naive Bayesian classifier
猜你喜欢
Simple Lianliankan games based on QT
Android IO, a first-line Internet manufacturer, is a collection of real questions for senior Android interviews
How to install mysql8.0 database under Windows system? (Graphic tutorial)
「连续学习Continual learning, CL」最新2022研究综述
The importance of using fonts correctly in DataWindow
慕课11、微服务的用户认证与授权
龙芯中科科创板上市:市值357亿 成国产CPU第一股
leetcode刷题:字符串01(反转字符串)
Detailed explanation of shutter textfield
茂莱光学科创板上市:拟募资4亿 范一与范浩兄弟为实控人
随机推荐
Cause analysis of 12 MySQL slow queries
剑指 Offer II 098. 路径的数目 / 剑指 Offer II 099. 最小路径之和
众多碎石3d材质贴图素材一键即可获取
Fixed length memory pool
Distributed ID generation system
windows系統下怎麼安裝mysql8.0數據庫?(圖文教程)
Hands on deep learning pytorch version 3 - Data Preprocessing
0基础学c语言(1)
「连续学习Continual learning, CL」最新2022研究综述
不同的子序列问题I
C primer plus learning notes - 3. Character IO (input / output)
JWT operation tool class sharing
Leetcode(763)——划分字母区间
leetcode刷题:哈希表08 (四数之和)
记录一次Redis大Key的排查
Arrête d'être un bébé géant.
Leetcode: hash table 08 (sum of four numbers)
与 MySQL 建立连接
QT based "synthetic watermelon" game
VB.net类库(进阶——2 重载)