Skip to content

Instantly share code, notes, and snippets.

@simonbrowndotje
Created November 8, 2015 16:28
Show Gist options
  • Save simonbrowndotje/d22df93917138d2c3ccf to your computer and use it in GitHub Desktop.
Save simonbrowndotje/d22df93917138d2c3ccf to your computer and use it in GitHub Desktop.
A description of the Spring PetClinic application using DOT
# Class diagram Spring PetClinic - System Context
digraph G {
graph [labelloc=top,label="Spring PetClinic - System Context",fontname="Verdana",fontsize=12];
edge [fontname="Verdana",fontsize=9,labelfontname="Verdana",labelfontsize=9];
node [fontname="Verdana",fontsize=9,shape=record];
c0 [label="Spring PetClinic"]
c1 [label="Clinic Employee"]
// null
c1 -> c0 [label="Uses" , ];
}
# Class diagram Spring PetClinic - Containers
digraph G {
graph [labelloc=top,label="Spring PetClinic - Containers",fontname="Verdana",fontsize=12];
edge [fontname="Verdana",fontsize=9,labelfontname="Verdana",labelfontsize=9];
node [fontname="Verdana",fontsize=9,shape=record];
c0 [label="Clinic Employee"]
c1 [label="Web Application"]
c2 [label="Relational Database"]
// null
c1 -> c2 [label="Reads from and writes to" , ];
// null
c0 -> c1 [label="Uses" , ];
}
# Class diagram Spring PetClinic - Web Application - Components
digraph G {
graph [labelloc=top,label="Spring PetClinic - Web Application - Components",fontname="Verdana",fontsize=12];
edge [fontname="Verdana",fontsize=9,labelfontname="Verdana",labelfontsize=9];
node [fontname="Verdana",fontsize=9,shape=record];
c0 [label="CrashController"]
c1 [label="PetController"]
c10 [label="VisitController"]
c11 [label="VetController"]
c2 [label="ClinicService"]
c3 [label="OwnerRepository"]
c4 [label="VisitRepository"]
c5 [label="VetRepository"]
c6 [label="PetRepository"]
c7 [label="Clinic Employee"]
c8 [label="Relational Database"]
c9 [label="OwnerController"]
// null
c1 -> c2 [];
// null
c3 -> c4 [];
// null
c7 -> c9 [label="Uses" , ];
// null
c6 -> c4 [];
// null
c6 -> c3 [];
// null
c4 -> c8 [label="Reads from and writes to" , ];
// null
c3 -> c8 [label="Reads from and writes to" , ];
// null
c6 -> c8 [label="Reads from and writes to" , ];
// null
c5 -> c8 [label="Reads from and writes to" , ];
// null
c10 -> c2 [];
// null
c11 -> c2 [];
// null
c7 -> c11 [label="Uses" , ];
// null
c7 -> c10 [label="Uses" , ];
// null
c7 -> c0 [label="Uses" , ];
// null
c9 -> c2 [];
// null
c7 -> c1 [label="Uses" , ];
// null
c2 -> c6 [];
// null
c2 -> c5 [];
// null
c2 -> c4 [];
// null
c2 -> c3 [];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment