From 3474d90f1795b8e527e95fbf53eaa69bbc189a58 Mon Sep 17 00:00:00 2001 From: Anthony Britton <105213050+anthony-britton-moj@users.noreply.github.com> Date: Thu, 21 Mar 2024 17:39:03 +0000 Subject: [PATCH] PI-2004 fix first name column (#3517) --- .../justice/digital/hmpps/integration/delius/entity/Person.kt | 2 +- .../uk/gov/justice/digital/hmpps/service/PersonMapping.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/core-person-record-and-delius/src/main/kotlin/uk/gov/justice/digital/hmpps/integration/delius/entity/Person.kt b/projects/core-person-record-and-delius/src/main/kotlin/uk/gov/justice/digital/hmpps/integration/delius/entity/Person.kt index b6740b7de5..6bae01c5c3 100644 --- a/projects/core-person-record-and-delius/src/main/kotlin/uk/gov/justice/digital/hmpps/integration/delius/entity/Person.kt +++ b/projects/core-person-record-and-delius/src/main/kotlin/uk/gov/justice/digital/hmpps/integration/delius/entity/Person.kt @@ -42,7 +42,7 @@ data class Person( @Column(name = "most_recent_prisoner_number") val prisonerNumber: String?, - val firstname: String, + val firstName: String, val secondName: String?, val thirdName: String?, val surname: String, diff --git a/projects/core-person-record-and-delius/src/main/kotlin/uk/gov/justice/digital/hmpps/service/PersonMapping.kt b/projects/core-person-record-and-delius/src/main/kotlin/uk/gov/justice/digital/hmpps/service/PersonMapping.kt index c7d2d07efc..9c33bcb9c5 100644 --- a/projects/core-person-record-and-delius/src/main/kotlin/uk/gov/justice/digital/hmpps/service/PersonMapping.kt +++ b/projects/core-person-record-and-delius/src/main/kotlin/uk/gov/justice/digital/hmpps/service/PersonMapping.kt @@ -24,7 +24,7 @@ fun Person.identifiers() = fun Person.name() = Name( - firstname, + firstName, listOfNotNull(secondName, thirdName).ifEmpty { null }?.joinToString(" "), surname, previousSurname,