From 18cac3c29a2877760a60b88534f27334bda247fd Mon Sep 17 00:00:00 2001 From: arybakov Date: Wed, 25 Sep 2024 12:13:58 -0600 Subject: [PATCH] GRAD2-2642 Update DTOs, entities and related code in GRAD-STUDENT-API --- .../educ/api/gradstudent/model/dto/EdwGraduationSnapshot.java | 2 ++ .../gradstudent/model/entity/EdwGraduationSnapshotEntity.java | 3 +++ 2 files changed, 5 insertions(+) diff --git a/api/src/main/java/ca/bc/gov/educ/api/gradstudent/model/dto/EdwGraduationSnapshot.java b/api/src/main/java/ca/bc/gov/educ/api/gradstudent/model/dto/EdwGraduationSnapshot.java index 16cf91a1..e917007e 100644 --- a/api/src/main/java/ca/bc/gov/educ/api/gradstudent/model/dto/EdwGraduationSnapshot.java +++ b/api/src/main/java/ca/bc/gov/educ/api/gradstudent/model/dto/EdwGraduationSnapshot.java @@ -9,6 +9,7 @@ import java.math.BigDecimal; import java.time.LocalDate; +import java.util.UUID; import static ca.bc.gov.educ.api.gradstudent.util.EducGradStudentApiConstants.DEFAULT_DATE_FORMAT; @@ -31,4 +32,5 @@ public class EdwGraduationSnapshot { private LocalDate sessionDate; private String schoolOfRecord; + private UUID schoolOfRecordId; } diff --git a/api/src/main/java/ca/bc/gov/educ/api/gradstudent/model/entity/EdwGraduationSnapshotEntity.java b/api/src/main/java/ca/bc/gov/educ/api/gradstudent/model/entity/EdwGraduationSnapshotEntity.java index 551ce263..075e401a 100644 --- a/api/src/main/java/ca/bc/gov/educ/api/gradstudent/model/entity/EdwGraduationSnapshotEntity.java +++ b/api/src/main/java/ca/bc/gov/educ/api/gradstudent/model/entity/EdwGraduationSnapshotEntity.java @@ -6,6 +6,7 @@ import java.math.BigDecimal; import java.time.LocalDate; +import java.util.UUID; @Data @EqualsAndHashCode(callSuper = false) @@ -34,5 +35,7 @@ public class EdwGraduationSnapshotEntity { private LocalDate sessionDate; @Column(name = "SCHOOL_OF_RECORD", nullable = true) private String schoolOfRecord; + @Column(name = "SCHOOL_OF_RECORD_ID", nullable = false) + private UUID schoolOfRecordId; }