当前位置:网站首页>Contact and understanding in PowerDesigner CDM
Contact and understanding in PowerDesigner CDM
2022-06-22 03:37:00 【qq_ forty-one million two hundred and eighty-five thousand four】
1.CDM There are three kinds of connections in Relationship( Relationship ) Inheritance( Inherit ) Association( relation )

2. The main understanding here is Relationship( Relationship )
1. Create two new entities Schools and principals , Connect them with relationships 
2. Double click relationship Enter the property panel , choice Cardinalities
one-one one-on-one one-many One to many many-one For one more many-many Many to many
Dependent rely on mandatory mandatory Cardinality Number
1.: one-on-one 、 One to many 、 For one more 、 Many to many Well understood.
One school corresponds to one principal 、 One school corresponds to multiple principals 、 Or multiple schools correspond to one principal Or multiple schools correspond to multiple principals
2.Dependent rely on
Dependency correlation Entity B Dependent on entities A be Entity A Of Identifiers Entry entity B To entity B Of iddentifiers Together form an entity B Of identifiers
understand : Master slave table relationship
A Main table B For the slave watch The primary key of the secondary table depends on the primary key of the primary table The primary key of the secondary table consists of the primary table's primary key and its own primary key
for example The school depends on the principal : From this conceptual model Generated entity model The last generated table creation statement is 

You can see the primary key of the principal entering the school , The primary key of the school is composed of the original primary key
3.madatory mandatory
Whether it's one-on-one Or one to many Or many to many , Each other's primary key will enter itself to form a foreign key
Compulsion means non emptiness
for example :School to Headmaster Check force
A school corresponds to one or more principals => The foreign key of the principal in the school is not empty
Headmaster to School Do not check force
It means that a headmaster can correspond to 0 A school
The corresponding table creation statement is 



3.Cardinality Number
0.1 =》 0 A or a
1.1 =》 1 individual
0.n =》 0 One or more
1.n =》 1 One or more
for example :School to Headmaster The quantitative relationship of
One school corresponds to 0 One or more 1 One or more 0 A or a
Be careful : When you're down Cardinality When changes above one-one one-on-one one-many One to many many-one For one more many-many Many to many Will change accordingly
边栏推荐
- 策略模式
- [网鼎杯 2018]Fakebook1 参考
- Mysql 45讲学习笔记(四)索引
- EU5, eu7, EX3, Ex5 install third-party apps
- golang并发编程之Mutex互斥锁实现同步和原子操作(atomic)
- A component required a bean of type 'com.example.demo3.service.UserServiceImp' that could not be fou
- Mysql 45讲学习笔记(二)SQL更新语句的执行
- Attributes, comments and field information of fields in MySQL query table
- Shelling of ESP law of reverse crackme
- 3DE save to Favorites
猜你喜欢

微信小程序聊天 表情

When 618 attacks, how to choose between Beibei X3 and Jimi h3s? Take you all-round in-depth analysis

在请求目标中找到无效字符。有效字符在RFC 7230和RFC 3986中定义

八大排序之直接插入排序

docker 安装redis

ASUS reinstallation system keyboard lamp failure = & gt; Refitting the ATK drive

618来袭,当贝X3和极米H3S怎么选?带你全方位深度解析

How to break through the sales dilemma of clothing stores

服装实体店如何突破销售困境

OAK相机如何实现同步?
随机推荐
Mysql 45讲学习笔记(一)一条sql语句的执行
Based on logback XML to realize the insensitive operation of saving log information
Introduction and use of kubernetes
mysql-索引创建、优化分析、索引优化
Project management software development project management
When 618 attacks, how to choose between Beibei X3 and Jimi h3s? Take you all-round in-depth analysis
C51的一些日记
3DE save to Favorites
Join等待多个线程的同步结果
所有项目的资源
618来袭,当贝X3和极米H3S怎么选?带你全方位深度解析
多线程 interrupt用法
Template as interface
zombie进程与orphan进程
装饰器《二》 property - 简答逻辑
How to break through the sales dilemma of clothing stores
eu5,eu7,ex3,ex5安装第三方app
利用yolov5训练自己的数据集; yolov5的安装与使用 ; yolov5源码解读
3DE position of moving object
TwinCAT 3 RS232通信的关键程序