fixes
This commit is contained in:
parent
96a565543e
commit
87cf744d13
|
@ -1,7 +1,6 @@
|
|||
package org.opencdmp.model.builder.descriptionworkflow;
|
||||
|
||||
import gr.cite.tools.data.builder.BuilderFactory;
|
||||
import gr.cite.tools.data.query.QueryFactory;
|
||||
import gr.cite.tools.exception.MyApplicationException;
|
||||
import gr.cite.tools.fieldset.FieldSet;
|
||||
import gr.cite.tools.logging.DataLogEntry;
|
||||
|
@ -14,7 +13,6 @@ import org.opencdmp.convention.ConventionService;
|
|||
import org.opencdmp.data.DescriptionWorkflowEntity;
|
||||
import org.opencdmp.model.builder.BaseBuilder;
|
||||
import org.opencdmp.model.descriptionworkflow.DescriptionWorkflow;
|
||||
import org.opencdmp.model.descriptionworkflow.DescriptionWorkflowDefinition;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
import java.util.*;
|
||||
|
|
|
@ -25,9 +25,6 @@ public class DescriptionWorkflowPersist {
|
|||
private String description;
|
||||
public final static String _description = "description";
|
||||
|
||||
private IsActive isActive;
|
||||
public final static String _isActive = "isActive";
|
||||
|
||||
private String hash;
|
||||
public final static String _hash = "hash";
|
||||
|
||||
|
@ -47,10 +44,6 @@ public class DescriptionWorkflowPersist {
|
|||
|
||||
public void setDescription(String description) { this.description = description; }
|
||||
|
||||
public IsActive getIsActive() { return isActive; }
|
||||
|
||||
public void setIsActive(IsActive isActive) { this.isActive = isActive; }
|
||||
|
||||
public String getHash() { return hash; }
|
||||
|
||||
public void setHash(String hash) { this.hash = hash; }
|
||||
|
@ -94,10 +87,6 @@ public class DescriptionWorkflowPersist {
|
|||
.must(() -> !this.isNull(item.getName()))
|
||||
.failOn(DescriptionWorkflowPersist._name)
|
||||
.failWith(this.messageSource.getMessage("Validation_Required", new Object[]{DescriptionWorkflowPersist._name}, LocaleContextHolder.getLocale())),
|
||||
this.spec()
|
||||
.must(() -> !this.isNull(item.getIsActive()))
|
||||
.failOn(DescriptionWorkflowPersist._isActive)
|
||||
.failWith(this.messageSource.getMessage("Validation_Required", new Object[]{DescriptionWorkflowPersist._isActive}, LocaleContextHolder.getLocale())),
|
||||
this.refSpec()
|
||||
.iff(() -> !this.isNull(item.getDefinition()))
|
||||
.on(DescriptionWorkflowPersist._description)
|
||||
|
|
|
@ -28,9 +28,6 @@ public class PlanWorkflowPersist {
|
|||
public static final String _description = "description";
|
||||
private String description;
|
||||
|
||||
public static final String _isActive = "isActive";
|
||||
private IsActive isActive;
|
||||
|
||||
public static final String _hash = "hash";
|
||||
private String hash;
|
||||
|
||||
|
@ -50,10 +47,6 @@ public class PlanWorkflowPersist {
|
|||
|
||||
public void setDescription(String description) { this.description = description; }
|
||||
|
||||
public IsActive getIsActive() { return isActive; }
|
||||
|
||||
public void setIsActive(IsActive isActive) { this.isActive = isActive; }
|
||||
|
||||
public String getHash() { return hash; }
|
||||
|
||||
public void setHash(String hash) { this.hash = hash; }
|
||||
|
@ -99,10 +92,6 @@ public class PlanWorkflowPersist {
|
|||
.must(() -> !this.isNull(item.getName()) && !this.isEmpty(item.getName()))
|
||||
.failOn(PlanWorkflowPersist._name)
|
||||
.failWith(this.messageSource.getMessage("Validation_Required", new Object[]{PlanWorkflowPersist._name}, LocaleContextHolder.getLocale())),
|
||||
this.spec()
|
||||
.must(() -> !this.isNull(item.getIsActive()))
|
||||
.failOn(PlanWorkflowPersist._isActive)
|
||||
.failWith(this.messageSource.getMessage("Validation_Required", new Object[]{PlanWorkflowPersist._isActive}, LocaleContextHolder.getLocale())),
|
||||
this.refSpec()
|
||||
.iff(() -> !this.isNull(item.getDefinition()))
|
||||
.on(PlanWorkflowPersist._definition)
|
||||
|
|
|
@ -10,8 +10,10 @@ import jakarta.persistence.criteria.Predicate;
|
|||
import org.opencdmp.authorization.AuthorizationFlags;
|
||||
import org.opencdmp.commons.enums.IsActive;
|
||||
import org.opencdmp.data.DescriptionWorkflowEntity;
|
||||
import org.opencdmp.data.PlanBlueprintEntity;
|
||||
import org.opencdmp.data.PlanWorkflowEntity;
|
||||
import org.opencdmp.data.TenantEntityManager;
|
||||
import org.opencdmp.model.planblueprint.PlanBlueprint;
|
||||
import org.opencdmp.model.planworkflow.PlanWorkflow;
|
||||
import org.opencdmp.query.utils.QueryUtilsService;
|
||||
import org.springframework.beans.factory.config.ConfigurableBeanFactory;
|
||||
|
@ -137,9 +139,7 @@ public class PlanWorkflowQuery extends QueryBase<PlanWorkflowEntity> {
|
|||
}
|
||||
|
||||
@Override
|
||||
protected EntityManager entityManager(){
|
||||
return this.entityManager.getEntityManager();
|
||||
}
|
||||
protected EntityManager entityManager(){ return this.entityManager.getEntityManager(); }
|
||||
|
||||
@Override
|
||||
protected Boolean isFalseQuery() {
|
||||
|
|
Loading…
Reference in New Issue