From 5fc15f52f5ddd3eb1c5abbfe2c7d085079a23960 Mon Sep 17 00:00:00 2001 From: Paul Miller Date: Thu, 5 Sep 2024 11:43:03 +0100 Subject: [PATCH] DST-17837 (#828) * DST-17837 Clarification on Active/Inactive Providers in the csv 'Export Users' Extract * Removing unused field. --- .../model/entity/export/ProbationAreaExportEntity.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/main/java/uk/co/bconline/ndelius/model/entity/export/ProbationAreaExportEntity.java b/src/main/java/uk/co/bconline/ndelius/model/entity/export/ProbationAreaExportEntity.java index a339cd07..b4097e08 100644 --- a/src/main/java/uk/co/bconline/ndelius/model/entity/export/ProbationAreaExportEntity.java +++ b/src/main/java/uk/co/bconline/ndelius/model/entity/export/ProbationAreaExportEntity.java @@ -4,6 +4,7 @@ import lombok.Getter; import lombok.NoArgsConstructor; import org.hibernate.annotations.Type; +import uk.co.bconline.ndelius.model.entity.converter.YNConverter; import javax.persistence.*; import java.io.Serializable; @@ -29,12 +30,12 @@ public class ProbationAreaExportEntity implements Serializable { @Column(name = "DESCRIPTION") private String description; - @Column(name = "END_DATE") - @Type(type = "java.time.LocalDate") - private LocalDate endDate; + @Column(name = "SELECTABLE") + @Convert(converter = YNConverter.class) + private boolean selectable; public String getExportDescription() { - return description + " (" + code + ")" + ((getEndDate() != null && getEndDate().isBefore(now())) ? " [Inactive]" : ""); + return description + " (" + code + ")" + (selectable ? "" : " [Inactive]"); } }