From ac18001da8b42cdc0cc2c0db4e4a79f2af31826a Mon Sep 17 00:00:00 2001 From: Andrew Lalis Date: Tue, 16 Apr 2019 09:46:13 +0200 Subject: [PATCH] Improved comment and added button for generation. --- .../teaching_assistant_assistant/model/people/Person.java | 5 ++++- src/main/resources/templates/index.html | 3 +++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/main/java/nl/andrewlalis/teaching_assistant_assistant/model/people/Person.java b/src/main/java/nl/andrewlalis/teaching_assistant_assistant/model/people/Person.java index 9633806..ba88962 100644 --- a/src/main/java/nl/andrewlalis/teaching_assistant_assistant/model/people/Person.java +++ b/src/main/java/nl/andrewlalis/teaching_assistant_assistant/model/people/Person.java @@ -27,7 +27,10 @@ public abstract class Person extends BasicEntity { private String emailAddress; /** - * The list of teams that this person belongs to. + * The list of teams that this person belongs to. Because a person can belong to more than one team, it is implied + * that each person exists in only one location in the database. Therefore, if one person is enrolled in two courses + * both of which use this application, only one instance of that person will exist, and will simply be related to + * two teams. */ @ManyToMany( fetch = FetchType.LAZY, diff --git a/src/main/resources/templates/index.html b/src/main/resources/templates/index.html index 84f6cbd..6eb40d6 100644 --- a/src/main/resources/templates/index.html +++ b/src/main/resources/templates/index.html @@ -15,6 +15,9 @@ +