From 588196af92ed88de1a620b3933c1f20290b54e55 Mon Sep 17 00:00:00 2001 From: Amardeep Chimber Date: Thu, 28 Mar 2024 14:47:26 +0000 Subject: [PATCH] PI-1939 - fix column definition --- .../gov/justice/digital/hmpps/data/generator/PersonGenerator.kt | 2 +- .../uk/gov/justice/digital/hmpps/SentenceIntegrationTest.kt | 2 +- .../hmpps/integrations/delius/overview/entity/Requirement.kt | 2 +- 3 files changed, 3 insertions(+), 3 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 bbce48c903..6f82ad66de 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 @@ -242,7 +242,7 @@ object PersonGenerator { disposal: Disposal, subCategoryId: Long, length: Long = 12, - notes: String = "my notes", + notes: String? = null, mainCategory: RequirementMainCategory = MAIN_CAT_F, active: Boolean = true, softDeleted: Boolean = false, diff --git a/projects/manage-supervision-and-delius/src/integrationTest/kotlin/uk/gov/justice/digital/hmpps/SentenceIntegrationTest.kt b/projects/manage-supervision-and-delius/src/integrationTest/kotlin/uk/gov/justice/digital/hmpps/SentenceIntegrationTest.kt index 98363ddb26..c2144984bd 100644 --- a/projects/manage-supervision-and-delius/src/integrationTest/kotlin/uk/gov/justice/digital/hmpps/SentenceIntegrationTest.kt +++ b/projects/manage-supervision-and-delius/src/integrationTest/kotlin/uk/gov/justice/digital/hmpps/SentenceIntegrationTest.kt @@ -65,7 +65,7 @@ class SentenceIntegrationTest { listOf(AdditionalSentence(3, null, null, "Disqualified from Driving")) ), Order("Default Sentence Type", 12, null, LocalDate.now().minusDays(14)), - listOf(Requirement("Main", "High Intensity", 12, "my notes", Rar(1, 0, 1))) + listOf(Requirement("Main", "High Intensity", 12, null, Rar(1, 0, 1))) ), Sentence( OffenceDetails( 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 534d5afab8..4e745c9e2c 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 @@ -17,7 +17,7 @@ class Requirement( val length: Long?, - @Column(name = "rqmnt_notes") + @Column(name = "rqmnt_notes", columnDefinition = "clob") val notes: String?, @Column(name = "rqmnt_type_sub_category_id")