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,