Skip to content

Commit 633c60d

Browse files
committed
feat: fixed git slides and added some FCED stuff
1 parent bcc053d commit 633c60d

8 files changed

Lines changed: 941 additions & 9 deletions

File tree

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
.project
22
*~
33
pdf/output/*
4-
.vscode/
4+
.vscode/
5+
node_modules/

.htaccess

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
RewriteEngine On
22

33
RewriteCond %{QUERY_STRING} !^s=
4-
RewriteRule ^([-a-zA-Z0-9]+)$ /~arestivo/slides/$1/ [R]
4+
RewriteRule ^([-a-zA-Z0-9]+)$ /~up353972/slides/$1/ [R]
55

66
RewriteCond %{QUERY_STRING} !^s=
7-
RewriteRule ^([-a-zA-Z0-9]+)/$ /~arestivo/slides/?s=$1 [R]
7+
RewriteRule ^([-a-zA-Z0-9]+)/$ /~up353972/slides/?s=$1 [R]

assets/uml-database/assets.xml

Lines changed: 557 additions & 1 deletion
Large diffs are not rendered by default.

assets/uml-database/association-qualified-one.svg

Lines changed: 4 additions & 0 deletions
Loading

markdown/relationalmodel-uml.md

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -420,9 +420,9 @@ Part (<u>code</u>, name, type, #number &rarr; Computer [NN])
420420

421421
---
422422

423-
# Qualified Associations
423+
# Qualified Associations (*)
424424

425-
![](assets/uml/qualified.svg)
425+
![](assets/uml-database/association-qualified.svg)
426426

427427
--
428428

@@ -439,6 +439,26 @@ Joined (<u>#code &rarr; Club</u>, <u>#id &rarr; Member</u>, number [NN])
439439
{UK: code, number}
440440
]
441441

442+
---
443+
444+
# Qualified Associations (1)
445+
446+
![](assets/uml-database/association-qualified-one.svg)
447+
448+
--
449+
450+
* **Many-to-one** relationship (foreign key from the **many** to the **one**);
451+
* The **unique key** ensures the unicity of the qualifier attribute.
452+
453+
.relational_example[
454+
School (<u>code</u>, title)
455+
456+
Student (<u>id</u>, name, address, phone, #school &rarr; School [NN])
457+
{UK: number, school}
458+
459+
]
460+
461+
442462
---
443463

444464
# Ternary Associations (\* \* \*)

markdown/uml-modeling.md

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -288,15 +288,27 @@ This means we **do not** want to have **courses** in our database **without** a
288288

289289
---
290290

291-
# Qualified Association
291+
# Qualified Association (*)
292292

293293
* Qualified associations define an **attribute** used to **distinguish** between the associated instance.
294294

295295
![](assets/uml-database/association-qualified.svg)
296296

297297
* In this example, a club can have **many members**, but **only one for each number**.
298298
* The members can belong to **many clubs**, and there is no restriction on their number.
299-
* A member can have the same number in two different clubs.
299+
* We can have two members with the same number as long as they are in two different clubs.
300+
301+
---
302+
303+
# Qualified Association (1)
304+
305+
* Qualified associations define an **attribute** used to **distinguish** between the associated instance.
306+
307+
![](assets/uml-database/association-qualified-one.svg)
308+
309+
* In this example, a school can have **many students**, but **only one for each number**.
310+
* The students can belong to **just one school**.
311+
* We can have two students with the same number as long as they are in two different schools.
300312

301313
---
302314

package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88
"license": "GPL-3.0-or-later",
99
"private": false,
1010
"scripts": {
11-
"sync": "rsync -r --info=progress2 --exclude='.git' . arestivo@pinguim.fe.up.pt:~/public_html/slides"
11+
"sync": "lftp -e 'set mirror:use-pget-n 5; mirror -R --verbose --exclude ^.git --exclude node_modules ./ public_html/slides; bye' sftp://up353972@pages.up.pt",
12+
"serve": "http-server -p 8080"
13+
},
14+
"dependencies": {
15+
"http-server": "^14.1.1"
1216
}
1317
}

0 commit comments

Comments
 (0)