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")