From 73b99e6149135d3952d5094afc810a8684674c88 Mon Sep 17 00:00:00 2001 From: achimber-moj <161360519+achimber-moj@users.noreply.github.com> Date: Mon, 15 Apr 2024 15:23:26 +0100 Subject: [PATCH] =?UTF-8?q?PI-1939=20-=20correct=20RQMNT=5FTERMINATION=5FR?= =?UTF-8?q?EASON=5FID=20column=20to=20be=20a=20long=20and=E2=80=A6=20(#363?= =?UTF-8?q?1)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PI-1939 - correct RQMNT_TERMINATION_REASON_ID column to be a long and not varchar --- .../gov/justice/digital/hmpps/data/generator/PersonGenerator.kt | 2 +- .../hmpps/integrations/delius/overview/entity/Requirement.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/manage-supervision-and-delius/src/dev/kotlin/uk/gov/justice/digital/hmpps/data/generator/PersonGenerator.kt b/projects/manage-supervision-and-delius/src/dev/kotlin/uk/gov/justice/digital/hmpps/data/generator/PersonGenerator.kt index 08d9c057f5..533f3009c9 100644 --- a/projects/manage-supervision-and-delius/src/dev/kotlin/uk/gov/justice/digital/hmpps/data/generator/PersonGenerator.kt +++ b/projects/manage-supervision-and-delius/src/dev/kotlin/uk/gov/justice/digital/hmpps/data/generator/PersonGenerator.kt @@ -279,7 +279,7 @@ object PersonGenerator { commencementDate: LocalDate? = LocalDate.now().minusDays(4), expectedEndDate: LocalDate? = LocalDate.now().minusDays(2), terminationDate: LocalDate? = LocalDate.now().minusDays(3), - rqmntTerminationReasonId: String? = null, + rqmntTerminationReasonId: Long? = null, id: Long = IdGenerator.getAndIncrement() ) = Requirement( id, diff --git a/projects/manage-supervision-and-delius/src/main/kotlin/uk/gov/justice/digital/hmpps/integrations/delius/overview/entity/Requirement.kt b/projects/manage-supervision-and-delius/src/main/kotlin/uk/gov/justice/digital/hmpps/integrations/delius/overview/entity/Requirement.kt index d97dea80dc..c90176ef05 100644 --- a/projects/manage-supervision-and-delius/src/main/kotlin/uk/gov/justice/digital/hmpps/integrations/delius/overview/entity/Requirement.kt +++ b/projects/manage-supervision-and-delius/src/main/kotlin/uk/gov/justice/digital/hmpps/integrations/delius/overview/entity/Requirement.kt @@ -35,7 +35,7 @@ class Requirement( val terminationDate: LocalDate?, - val rqmntTerminationReasonId: String?, + val rqmntTerminationReasonId: Long?, @ManyToOne @JoinColumn(name = "disposal_id")