From 193045690cb0bd46068e7e86065e8d1748c39197 Mon Sep 17 00:00:00 2001 From: "probation-integration-bot[bot]" <177347787+probation-integration-bot[bot]@users.noreply.github.com> Date: Fri, 8 Nov 2024 10:57:43 +0000 Subject: [PATCH] Formatting changes --- .../gov/justice/digital/hmpps/service/entity/Disposal.kt | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/projects/sentence-plan-and-delius/src/main/kotlin/uk/gov/justice/digital/hmpps/service/entity/Disposal.kt b/projects/sentence-plan-and-delius/src/main/kotlin/uk/gov/justice/digital/hmpps/service/entity/Disposal.kt index 7b4e25814e..db5503baaf 100644 --- a/projects/sentence-plan-and-delius/src/main/kotlin/uk/gov/justice/digital/hmpps/service/entity/Disposal.kt +++ b/projects/sentence-plan-and-delius/src/main/kotlin/uk/gov/justice/digital/hmpps/service/entity/Disposal.kt @@ -40,7 +40,7 @@ class Disposal( @Column(columnDefinition = "number") val softDeleted: Boolean = false -){ +) { fun expectedEndDate() = enteredSentenceEndDate ?: endDate } @@ -62,12 +62,13 @@ data class DisposalType( interface DisposalRepository : JpaRepository { - @Query(""" + @Query( + """ select d from Disposal d join d.event e where e.person.crn = :crn - """) + """ + ) fun findActiveSentences(crn: String): List - }