summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--assignments/1/README.md22
-rw-r--r--assignments/1/associative-entity.pngbin0 -> 10258 bytes
-rw-r--r--assignments/1/associative-entity.uml19
-rwxr-xr-xbin/uml3
4 files changed, 23 insertions, 21 deletions
diff --git a/assignments/1/README.md b/assignments/1/README.md
index f2e1989..1929ff0 100644
--- a/assignments/1/README.md
+++ b/assignments/1/README.md
@@ -47,27 +47,7 @@ a. Associative entity
> An entity type that associates the instances of one or more entity types and contains attributes that are peculiar to the relationship between those entity instances.
Project ||-<- Policy ->-|| SoftwareLicense
- ```plantuml
- @startuml
- entity 'Project' as project {
- *id: number
- *name: varchar(255)
- }
- entity 'Policy' as policy {
- *id: number
- *classification: number
- *project_id: number
- *software_license_id: number
- }
- entity 'SoftwareLicense' as license {
- *id: number
- *spdx_id: varchar(255)
- *name: varchar(255)
- }
- project ||..|{ policy
- license ||..|{ policy
- @enduml
- ```
+ ![associative entity example](./associative-entity.png)
b. Weak entity
c. Unary relationship
diff --git a/assignments/1/associative-entity.png b/assignments/1/associative-entity.png
new file mode 100644
index 0000000..6e62f99
--- /dev/null
+++ b/assignments/1/associative-entity.png
Binary files differ
diff --git a/assignments/1/associative-entity.uml b/assignments/1/associative-entity.uml
new file mode 100644
index 0000000..a52a489
--- /dev/null
+++ b/assignments/1/associative-entity.uml
@@ -0,0 +1,19 @@
+@startuml
+entity "Project" as project {
+ *id: number
+ *name: varchar(255)
+}
+entity "Policy" as policy {
+ *id: number
+ *classification: number
+ *project_id: number
+ *software_license_id: number
+}
+entity "SoftwareLicense" as license {
+ *id: number
+ *spdx_id: varchar(255)
+ *name: varchar(255)
+}
+project ||..|{ policy
+license ||..|{ policy
+@enduml
diff --git a/bin/uml b/bin/uml
new file mode 100755
index 0000000..9e57042
--- /dev/null
+++ b/bin/uml
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+plantuml assignments/1/associative-entity.uml