From 58ed506affe32bc7640007285d0c82cf66eba5ef Mon Sep 17 00:00:00 2001 From: mo khan Date: Wed, 1 Jan 2020 14:27:04 -0700 Subject: Convert uml to image --- assignments/1/README.md | 22 +--------------------- assignments/1/associative-entity.png | Bin 0 -> 10258 bytes assignments/1/associative-entity.uml | 19 +++++++++++++++++++ bin/uml | 3 +++ 4 files changed, 23 insertions(+), 21 deletions(-) create mode 100644 assignments/1/associative-entity.png create mode 100644 assignments/1/associative-entity.uml create mode 100755 bin/uml 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 Binary files /dev/null and b/assignments/1/associative-entity.png 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 -- cgit v1.2.3