Skip to content

Commit

Permalink
add NumericBooleanConverter, to prevent local test failure
Browse files Browse the repository at this point in the history
  • Loading branch information
achimber-moj committed Dec 10, 2024
1 parent 9cd91a3 commit 90f3f5e
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package uk.gov.justice.digital.hmpps.service.entity
import jakarta.persistence.*
import org.hibernate.annotations.Immutable
import org.hibernate.annotations.SQLRestriction
import org.hibernate.type.NumericBooleanConverter
import org.springframework.data.jpa.repository.JpaRepository
import org.springframework.data.jpa.repository.Query

Expand All @@ -16,6 +17,8 @@ class UpwAppointment(
val minutesCredited: Long?,
@Column(columnDefinition = "char(1)")
val attended: String?,
@Column(name = "soft_deleted", columnDefinition = "number")
@Convert(converter = NumericBooleanConverter::class)
val softDeleted: Boolean = false,
@JoinColumn(name = "upw_details_id")
@ManyToOne
Expand All @@ -34,6 +37,8 @@ class UpwDetails(
@ManyToOne
val disposal: Disposal,

@Column(name = "soft_deleted", columnDefinition = "number")
@Convert(converter = NumericBooleanConverter::class)
val softDeleted: Boolean = false,
)

Expand Down

0 comments on commit 90f3f5e

Please sign in to comment.