当前位置:网站首页>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 :

边栏推荐
- 7个人生工具:SWOT、PDCA、6W2H、SMART、WBS、时间管理、二八原则
- JINTE NET基金会将通过线上直播参与维度链全球战略发布会
- C starts an external EXE file and passes in parameters
- 回归预测 | MATLAB实现RBF径向基神经网络多输入单输出
- select into from 和 insert into select 区别
- Opencv相机标定之圆形标识点中心检测
- 【opencvsharp】opencvsharp_samples.core示例代码笔记
- Go语言之Go 快速入门篇(一):第一个 Go 程序
- 啟牛商學院給的證券賬戶是安全的嗎?開戶收費嗎
- 【opencvsharp】opencvsharp_ samples. Core sample code Notes
猜你喜欢

R1 Quick Open Pressure Vessel Operation test Library and Simulation Test in 2022

Memory image of various data types in C language

Global and Chinese molten carbonate fuel cell industry outlook and market panoramic Research Report 2022-2028

Katalon Studio Enterprise

2022 high altitude installation, maintenance and demolition test simulation 100 questions and online simulation test

2022安全员-C证特种作业证考试题库及答案

^31 prototype interview questions

Leetcode 1974. Minimum time to type words using a special typewriter (yes, once)

How unittest knows the execution time of each test case

Leetcode 1974. 使用特殊打字机键入单词的最少时间(可以,一次过)
随机推荐
2022 high voltage electrician special operation certificate examination question bank and online simulation examination
Katalon Studio Enterprise
时序预测 | MATLAB实现RBF径向基神经网络时间序列未来多步预测
做跨境电商卖什么产品好?热销类目有哪些?
Can I eat meat during weight loss? Will you get fat?
How unittest knows the execution time of each test case
2022年高处安装、维护、拆除考试模拟100题及在线模拟考试
Learn about Prometheus from 0 to 1
leetcode463. Perimeter of the island (simple)
利用 MATLAB 和 DCRAW 处理数码相机 RAW 文件的完整流程
C语言各数据类型的内存映像
What is RS stamp paper?
啟牛商學院給的證券賬戶是安全的嗎?開戶收費嗎
What is a generic? Why use generics? How do I use generics? What about packaging?
2022年R1快开门式压力容器操作考试题库及模拟考试
leetcode684. Redundant connection (medium)
7 life tools: SWOT, PDCA, 6w2h, smart, WBS, time management, and the 28 principles
485 days, 21 experiences of my remote office sharing | community essay solicitation
2022年R1快開門式壓力容器操作考試題庫及模擬考試
JVM 的组成