当前位置:网站首页>SAP SEGW 事物码里的 Association 建模方式
SAP SEGW 事物码里的 Association 建模方式
2022-07-05 12:39:00 【汪子熙】
Association 模型用于描述 OData 模型里不同 Entity Type 之间的关联关系。
我们来看一个具体的例子:
Principal Entity(主体):代表 association 的主导端。
Cardinality(基数):指定主体实体类型和依赖实体类型之间的关系。按 F4 或点击从列表中选择。
关联的多重性如下:
- 0: 0 . .1:只出现一个实例,也允许0。
- 1:一对一的关系。任何时候仅允许一个 association 实例。
- N: 1 . . n:一对多关系。可以出现一个或多个实例。
- M:0 . .n:零到多个关系。可以出现零个或多个实例。
为引用约束(referential constraints
)指定以下参数,目的是将主体实体类型的每个键,关联到从属实体类型的一个属性:
- 主体键(Principal key):按 F4 选择主体实体类型中的一个键属性。
- 依赖属性(Dependent property):按 F4 选择指定依赖实体类型的属性。
Referential Constraints 的一个例子如下:
引用约束(Referential Constraints)可用于指定1:1或1:n关联的外键关系。
Association Set 将一系列关联实例进行分组,类似于 Entity Set 将实体类型实例进行分组一样。因此,它根据底层关联的各自实体类型,指定两个实体集之间的关系。
假设有一个基于实体类型 Author 和 Book 的 1:n association Author_To_Books
,可能有一个 Association Set WrittenBy
,用于 Entity Set Authors 和 Books,以及另一个 Association Set FictionWrittenBy,用于 Entity Set FictionAuthors 和 FictionBooks。
这意味着,如果在运行时跟随 Authors Feed 条目的导航链接,它将生成Books Feed,而跟随 FictionAuthors Feed 条目的链接,将生成 FictionBooks 提要。
尽管两者在结构上是相等的
,因为它们基于相同的实体类型,但具有不同的语义,并且可能包含不同数目的条目。
边栏推荐
- Transactions from January 6 to October 2022
- 关于 SAP UI5 getSAPLogonLanguage is not a function 的错误消息以及 API 版本的讨论
- View and modify the MySQL data storage directory under centos7
- stirring! 2022 open atom global open source summit registration is hot!
- 在家庭智能照明中应用的测距传感芯片4530A
- RHCSA5
- 跨平台(32bit和64bit)的 printf 格式符 %lld 输出64位的解决方式
- Kotlin变量
- Four common problems of e-commerce sellers' refund and cash return, with solutions
- 单独编译内核模块
猜你喜欢
研究:数据安全工具在 60% 的情况下无法抵御勒索软件
The relationship between the size change of characteristic graph and various parameters before and after DL convolution operation
Pytoch implements tf Functions of the gather() function
C language structure is initialized as a function parameter
[figure neural network] GNN from entry to mastery
【云原生】Nacos-TaskManager 任务管理的使用
UNIX socket advanced learning diary - advanced i/o functions
JDBC -- extract JDBC tool classes
【Nacos云原生】阅读源码第一步,本地启动Nacos
stm32和电机开发(从架构图到文档编写)
随机推荐
Summary of C language learning problems (VS)
在家庭智能照明中应用的测距传感芯片4530A
10 minute fitness method reading notes (1/5)
Distributed solution - distributed lock solution - redis based distributed lock implementation
Pytoch counts the number of the same elements in the tensor
上午面了个腾讯拿 38K 出来的,让我见识到了基础的天花
我在滴滴做开源
Taobao order interface | order flag remarks, may be the most stable and easy-to-use interface
Common commands and basic operations of Apache Phoenix
以VMware创新之道,重塑多云产品力
Transactions from January 14 to 19, 2022
太方便了,钉钉上就可完成代码发布审批啦!
实战模拟│JWT 登录认证
#yyds干货盘点#js截取文件后缀名
Principle of universal gbase high availability synchronization tool in Nanjing University
From the perspective of technology and risk control, it is analyzed that wechat Alipay restricts the remote collection of personal collection code
insmod 提示 Invalid module format
NFT: how to make money with unique assets?
JDBC exercise - query data encapsulated into object return & simple login demo
How can labels/legends be added for all chart types in chart. js (chartjs.org)?