diff --git a/projects/domain-events-and-delius/src/dev/kotlin/uk/gov/justice/digital/hmpps/data/generator/PersonGenerator.kt b/projects/domain-events-and-delius/src/dev/kotlin/uk/gov/justice/digital/hmpps/data/generator/PersonGenerator.kt index 92a7ca7ce8..2aba3ab661 100644 --- a/projects/domain-events-and-delius/src/dev/kotlin/uk/gov/justice/digital/hmpps/data/generator/PersonGenerator.kt +++ b/projects/domain-events-and-delius/src/dev/kotlin/uk/gov/justice/digital/hmpps/data/generator/PersonGenerator.kt @@ -18,4 +18,4 @@ object PersonGenerator { softDeleted: Boolean = false, id: Long = IdGenerator.getAndIncrement() ) = Person(crn, pnc, forename, secondName, thirdName, surname, dateOfBirth, softDeleted, id) -} \ No newline at end of file +} diff --git a/projects/domain-events-and-delius/src/integrationTest/kotlin/uk/gov/justice/digital/hmpps/EngagementCreatedTest.kt b/projects/domain-events-and-delius/src/integrationTest/kotlin/uk/gov/justice/digital/hmpps/EngagementCreatedTest.kt index a1033c0341..824e3a94f4 100644 --- a/projects/domain-events-and-delius/src/integrationTest/kotlin/uk/gov/justice/digital/hmpps/EngagementCreatedTest.kt +++ b/projects/domain-events-and-delius/src/integrationTest/kotlin/uk/gov/justice/digital/hmpps/EngagementCreatedTest.kt @@ -49,4 +49,4 @@ internal class EngagementCreatedTest { ) ) } -} \ No newline at end of file +} diff --git a/projects/domain-events-and-delius/src/main/kotlin/uk/gov/justice/digital/hmpps/api/engagement/EngagementResource.kt b/projects/domain-events-and-delius/src/main/kotlin/uk/gov/justice/digital/hmpps/api/engagement/EngagementResource.kt index 1a3ca05acd..91d3ea1a11 100644 --- a/projects/domain-events-and-delius/src/main/kotlin/uk/gov/justice/digital/hmpps/api/engagement/EngagementResource.kt +++ b/projects/domain-events-and-delius/src/main/kotlin/uk/gov/justice/digital/hmpps/api/engagement/EngagementResource.kt @@ -14,4 +14,4 @@ class EngagementResource(private val personService: PersonService) { @PreAuthorize("hasRole('VIEW_PROBATION_CASE_ENGAGEMENT_CREATED')") @GetMapping("probation-case.engagement.created/{crn}") fun getEngagement(@PathVariable crn: String): Engagement = personService.findEngagement(crn) -} \ No newline at end of file +} diff --git a/projects/domain-events-and-delius/src/main/kotlin/uk/gov/justice/digital/hmpps/integrations/delius/person/entity/Person.kt b/projects/domain-events-and-delius/src/main/kotlin/uk/gov/justice/digital/hmpps/integrations/delius/person/entity/Person.kt index a623d848bf..693921a72e 100644 --- a/projects/domain-events-and-delius/src/main/kotlin/uk/gov/justice/digital/hmpps/integrations/delius/person/entity/Person.kt +++ b/projects/domain-events-and-delius/src/main/kotlin/uk/gov/justice/digital/hmpps/integrations/delius/person/entity/Person.kt @@ -41,9 +41,9 @@ class Person( @Id @Column(name = "offender_id") - val id: Long, + val id: Long ) interface PersonRepository : JpaRepository { fun findByCrn(crn: String): Person? -} \ No newline at end of file +} diff --git a/projects/domain-events-and-delius/src/main/kotlin/uk/gov/justice/digital/hmpps/service/PersonService.kt b/projects/domain-events-and-delius/src/main/kotlin/uk/gov/justice/digital/hmpps/service/PersonService.kt index 8759c914dd..9b3a87a302 100644 --- a/projects/domain-events-and-delius/src/main/kotlin/uk/gov/justice/digital/hmpps/service/PersonService.kt +++ b/projects/domain-events-and-delius/src/main/kotlin/uk/gov/justice/digital/hmpps/service/PersonService.kt @@ -30,4 +30,4 @@ data class Name( val forename: String, val surname: String, val otherNames: List -) \ No newline at end of file +)