From caa3d74a4f246e377624ebc024887d42df6b8233 Mon Sep 17 00:00:00 2001 From: pmcphee77 <150798161+pmcphee77@users.noreply.github.com> Date: Mon, 18 Mar 2024 10:00:30 +0000 Subject: [PATCH] PI-1991: Corrected verified (#3487) --- .../hmpps/api/model/personalDetails/CircumstanceOverview.kt | 2 +- .../delius/overview/entity/PersonalCircumstance.kt | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/projects/manage-supervision-and-delius/src/main/kotlin/uk/gov/justice/digital/hmpps/api/model/personalDetails/CircumstanceOverview.kt b/projects/manage-supervision-and-delius/src/main/kotlin/uk/gov/justice/digital/hmpps/api/model/personalDetails/CircumstanceOverview.kt index 7c0772189d..51751e737e 100644 --- a/projects/manage-supervision-and-delius/src/main/kotlin/uk/gov/justice/digital/hmpps/api/model/personalDetails/CircumstanceOverview.kt +++ b/projects/manage-supervision-and-delius/src/main/kotlin/uk/gov/justice/digital/hmpps/api/model/personalDetails/CircumstanceOverview.kt @@ -13,7 +13,7 @@ data class Circumstance( val type: String, val subType: String, val notes: String?, - val verified: Boolean = false, + val verified: Boolean?, val startDate: LocalDate, val lastUpdated: LocalDate, val lastUpdatedBy: Name diff --git a/projects/manage-supervision-and-delius/src/main/kotlin/uk/gov/justice/digital/hmpps/integrations/delius/overview/entity/PersonalCircumstance.kt b/projects/manage-supervision-and-delius/src/main/kotlin/uk/gov/justice/digital/hmpps/integrations/delius/overview/entity/PersonalCircumstance.kt index f52dd2b166..e53e20702e 100644 --- a/projects/manage-supervision-and-delius/src/main/kotlin/uk/gov/justice/digital/hmpps/integrations/delius/overview/entity/PersonalCircumstance.kt +++ b/projects/manage-supervision-and-delius/src/main/kotlin/uk/gov/justice/digital/hmpps/integrations/delius/overview/entity/PersonalCircumstance.kt @@ -5,6 +5,7 @@ import org.hibernate.annotations.Fetch import org.hibernate.annotations.FetchMode import org.hibernate.annotations.Immutable import org.hibernate.annotations.SQLRestriction +import org.hibernate.type.YesNoConverter import org.springframework.data.jpa.repository.JpaRepository import org.springframework.data.jpa.repository.Query import uk.gov.justice.digital.hmpps.integrations.delius.referencedata.entity.ReferenceData @@ -43,7 +44,8 @@ class PersonalCircumstance( @Column(name = "notes", columnDefinition = "clob") val notes: String? = null, - val evidenced: Boolean = false, + @Convert(converter = YesNoConverter::class) + val evidenced: Boolean? = false, val startDate: LocalDate,