diff --git a/backend/core/src/main/java/org/opencdmp/data/PlanStatusEntity.java b/backend/core/src/main/java/org/opencdmp/data/PlanStatusEntity.java index be49b0fd8..e32db4ec8 100644 --- a/backend/core/src/main/java/org/opencdmp/data/PlanStatusEntity.java +++ b/backend/core/src/main/java/org/opencdmp/data/PlanStatusEntity.java @@ -4,7 +4,6 @@ import jakarta.persistence.*; import org.hibernate.annotations.Type; import org.opencdmp.commons.enums.IsActive; import org.opencdmp.commons.enums.PlanStatus; -import org.opencdmp.data.converters.enums.DescriptionTemplateStatusConverter; import org.opencdmp.data.converters.enums.IsActiveConverter; import org.opencdmp.data.converters.enums.PlanStatusConverter; import org.opencdmp.data.tenant.TenantScopedBaseEntity; @@ -82,9 +81,7 @@ public class PlanStatusEntity extends TenantScopedBaseEntity { this.updatedAt = updatedAt; } - public IsActive getIsActive() { - return this.isActive; - } + public IsActive getIsActive() { return this.isActive; } public void setIsActive(IsActive isActive) { this.isActive = isActive; } diff --git a/backend/core/src/main/java/org/opencdmp/query/PlanStatusQuery.java b/backend/core/src/main/java/org/opencdmp/query/PlanStatusQuery.java index 274650f95..8dccb79ef 100644 --- a/backend/core/src/main/java/org/opencdmp/query/PlanStatusQuery.java +++ b/backend/core/src/main/java/org/opencdmp/query/PlanStatusQuery.java @@ -214,6 +214,7 @@ public class PlanStatusQuery extends QueryBase { item.setInternalStatus(QueryBase.convertSafe(tuple, columns, PlanStatusEntity._internalStatus, org.opencdmp.commons.enums.PlanStatus.class)); item.setCreatedAt(QueryBase.convertSafe(tuple, columns, PlanStatusEntity._createdAt, Instant.class)); item.setUpdatedAt(QueryBase.convertSafe(tuple, columns, PlanStatusEntity._updatedAt, Instant.class)); + item.setIsActive(QueryBase.convertSafe(tuple, columns, PlanStatusEntity._isActive, IsActive.class)); return item; } } diff --git a/backend/core/src/main/java/org/opencdmp/service/planstatus/PlanStatusServiceImpl.java b/backend/core/src/main/java/org/opencdmp/service/planstatus/PlanStatusServiceImpl.java index 9c53fb457..3ac7b896d 100644 --- a/backend/core/src/main/java/org/opencdmp/service/planstatus/PlanStatusServiceImpl.java +++ b/backend/core/src/main/java/org/opencdmp/service/planstatus/PlanStatusServiceImpl.java @@ -38,7 +38,6 @@ import org.springframework.stereotype.Service; import javax.management.InvalidApplicationException; import java.time.Instant; -import java.util.ArrayList; import java.util.List; import java.util.UUID;