当前位置:网站首页>Association relationship
Association relationship
2022-06-11 16:44:00 【Peach】
Associations can also be broken down into aggregation and composition ( The specific concepts of the two are searched by the readers themselves ).
Discovery of aggregation 、 Combination can be understood from another angle .
Let's start with aggregation , It is a weak correlation , The general meaning is that the whole and the part can exist independently . If we change the angle , It can be regarded as a cascading operation of the database .
Take the group and its members for example , When deleting a group , Delete the members of this group , This is obviously unscientific , Because the group and its members are weakly related , The group can have any one member , A team member can also go to any group , This group no longer exists , You can go to another group , They are not necessarily related , It can be called aggregation .
therefore , When we were designing the database , Cascading deletion is often not set , in other words , Deleting a group does not delete group members .
UML The figure is as follows :

Hollow diamond for aggregation , Point to one End .
Let's talk about combination , Composition is a strong association , The general meaning is that the whole and the part are inseparable , Can't exist independently . Also understand from cascade operation .
Take students and student ID cards for example , If a student drops out , No longer belong to this school , Then consider deleting the student information , When deleting , The student ID information corresponding to the student will also be deleted , Cascade deletion can be added here . Because the student ID card belongs to a student's proprietary information , The student no longer exists , The student ID card cannot be used by others , So it's a strong correlation , It can be called combination .
UML The figure is as follows :

边栏推荐
- Oracle 分析函数 over 和MySQL 实现类似效果写法
- RDKit 安装
- 笔记本连接外部键盘后,如何把笔记本自身的键盘禁用
- 啟牛商學院給的證券賬戶是安全的嗎?開戶收費嗎
- “is-a”,“has-a”,“like-a”
- 瑞吉外卖项目(三)员工管理业务开发
- 【pytest学习】pytest 用例执行失败后其他不再执行
- Oracle database merge row records, wmsys WM_ Use of the concat function and group in MySQL_ Use and comparison of concat (ID).
- 2022 national question bank and mock examination for safety officer-b certificate
- Wechat applet timestamp conversion time format + time subtraction
猜你喜欢

信息收集常用工具及命令

Learn about Prometheus from 0 to 1

2022年安全员-B证国家题库及模拟考试

C语言各数据类型的内存映像

LeetCode——42. 接雨水(双指针)

2022年危险化学品经营单位主要负责人考试模拟100题及模拟考试

web网页设计实例作业 ——河南美食介绍(4页) web期末作业设计网页_甜品美食大学生网页设计作业成品

学生网站模板棕色蛋糕甜品网站设计——棕色蛋糕甜品店(4页) 美食甜品网页制作期末大作业成品_生鲜水果网页设计期末作业

How unittest knows the execution time of each test case

Classic reading of multi task learning: MMOE model
随机推荐
Time series prediction | MATLAB realizes future multi-step prediction of RBF RBF neural network time series
利用 MATLAB 和 DCRAW 处理数码相机 RAW 文件的完整流程
Analysis report on the "fourteenth five year plan" proposal and innovation environment of global and Chinese sodium pyrophosphate industry (2022-2028)
How to store tree structure in database
信息收集常用工具及命令
JINTE NET基金会将通过线上直播参与维度链全球战略发布会
Message queue push / pull mode Learning & ActiveMQ and JMS learning
多任务学习经典品读:MMoE模型篇
2022g1 industrial boiler stoker test questions and simulation test
[ISITDTU 2019]EasyPHP
^31原型面试题
Is the securities account given by qiniu business school safe? Do you charge for opening an account
2022 safety officer-a certificate test question simulation test question bank simulation test platform operation
Wechat applet timestamp conversion time format + time subtraction
2022 high voltage electrician special operation certificate examination question bank and online simulation examination
基于udp端口猜测的内网穿透
Regression prediction | realization of RBF RBF neural network with multiple inputs and single output by MATLAB
Exception handling and exception usage in golang
Global and Chinese molten carbonate fuel cell industry outlook and market panoramic Research Report 2022-2028
web安全-靶场笔记