summaryrefslogtreecommitdiff
path: root/src/main/java/com/mavlushechka/studentdatabase/domain/GraduatedInstitution.java
diff options
context:
space:
mode:
authormavlushechka <mavlushechka@gmail.com>2021-11-12 21:31:54 +0500
committermavlushechka <mavlushechka@gmail.com>2021-11-12 21:31:54 +0500
commit8d284e1690faba5c0f834a07bac81e1ee00d515f (patch)
treedd587e71f8c091c1262a84cd2c7e1dd7cd7e4226 /src/main/java/com/mavlushechka/studentdatabase/domain/GraduatedInstitution.java
Initializing
Diffstat (limited to 'src/main/java/com/mavlushechka/studentdatabase/domain/GraduatedInstitution.java')
-rwxr-xr-xsrc/main/java/com/mavlushechka/studentdatabase/domain/GraduatedInstitution.java54
1 files changed, 54 insertions, 0 deletions
diff --git a/src/main/java/com/mavlushechka/studentdatabase/domain/GraduatedInstitution.java b/src/main/java/com/mavlushechka/studentdatabase/domain/GraduatedInstitution.java
new file mode 100755
index 0000000..009b369
--- /dev/null
+++ b/src/main/java/com/mavlushechka/studentdatabase/domain/GraduatedInstitution.java
@@ -0,0 +1,54 @@
+package com.mavlushechka.studentdatabase.domain;
+
+import org.springframework.data.annotation.Id;
+import org.springframework.data.mongodb.core.mapping.Document;
+
+@Document(collection = "graduatedInstitutions")
+public class GraduatedInstitution {
+ @Id
+ private String id;
+ private String name;
+ private String type;
+ private String territory;
+ private Certificate certificate;
+
+ public String getId() {
+ return id;
+ }
+
+ public void setId(String id) {
+ this.id = id;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public String getType() {
+ return type;
+ }
+
+ public void setType(String type) {
+ this.type = type;
+ }
+
+ public String getTerritory() {
+ return territory;
+ }
+
+ public void setTerritory(String territory) {
+ this.territory = territory;
+ }
+
+ public Certificate getCertificate() {
+ return certificate;
+ }
+
+ public void setCertificate(Certificate certificate) {
+ this.certificate = certificate;
+ }
+}