Class JPARootEntity<T extends org.dromara.warm.flow.core.entity.RootEntity>

java.lang.Object
org.dromara.warm.flow.orm.entity.JPARootEntity<T>
All Implemented Interfaces:
Serializable, org.dromara.warm.flow.core.entity.RootEntity
Direct Known Subclasses:
FlowDefinition, FlowForm, FlowHisTask, FlowInstance, FlowNode, FlowSkip, FlowTask, FlowUser

@MappedSuperclass public abstract class JPARootEntity<T extends org.dromara.warm.flow.core.entity.RootEntity> extends Object implements org.dromara.warm.flow.core.entity.RootEntity
Since:
2024/5/10 17:59
Author:
vanlin
See Also:
  • Field Details

    • JPA_ROOT_ENTITY_MAPPING

      protected static final HashMap<String,String> JPA_ROOT_ENTITY_MAPPING
    • commonPredicate

      private JPAPredicateFunction<javax.persistence.criteria.CriteriaBuilder,javax.persistence.criteria.Root<T extends org.dromara.warm.flow.core.entity.RootEntity>,List<javax.persistence.criteria.Predicate>> commonPredicate
    • id

      private Long id
      主键
    • createTime

      private Date createTime
      任务开始时间
    • updateTime

      private Date updateTime
      审批完成时间
    • tenantId

      private String tenantId
      租户ID
    • delFlag

      private String delFlag
      删除标记
  • Constructor Details

    • JPARootEntity

      public JPARootEntity()
  • Method Details

    • orderByField

      public abstract String orderByField(String orderByColumn)
    • entityPredicate

      public abstract JPAPredicateFunction<javax.persistence.criteria.CriteriaBuilder,javax.persistence.criteria.Root<T>,List<javax.persistence.criteria.Predicate>> entityPredicate()
    • entityMerge

      public abstract JPAUpdateMergeFunction<T> entityMerge()
    • initDefaultValue

      public abstract void initDefaultValue()
    • commonPredicate

      public JPAPredicateFunction<javax.persistence.criteria.CriteriaBuilder,javax.persistence.criteria.Root<T>,List<javax.persistence.criteria.Predicate>> commonPredicate()
    • getId

      public Long getId()
      Specified by:
      getId in interface org.dromara.warm.flow.core.entity.RootEntity
    • setId

      public T setId(Long id)
      Specified by:
      setId in interface org.dromara.warm.flow.core.entity.RootEntity
    • getCreateTime

      public Date getCreateTime()
      Specified by:
      getCreateTime in interface org.dromara.warm.flow.core.entity.RootEntity
    • setCreateTime

      public T setCreateTime(Date createTime)
      Specified by:
      setCreateTime in interface org.dromara.warm.flow.core.entity.RootEntity
    • getUpdateTime

      public Date getUpdateTime()
      Specified by:
      getUpdateTime in interface org.dromara.warm.flow.core.entity.RootEntity
    • setUpdateTime

      public T setUpdateTime(Date updateTime)
      Specified by:
      setUpdateTime in interface org.dromara.warm.flow.core.entity.RootEntity
    • getTenantId

      public String getTenantId()
      Specified by:
      getTenantId in interface org.dromara.warm.flow.core.entity.RootEntity
    • setTenantId

      public T setTenantId(String tenantId)
      Specified by:
      setTenantId in interface org.dromara.warm.flow.core.entity.RootEntity
    • getDelFlag

      public String getDelFlag()
      Specified by:
      getDelFlag in interface org.dromara.warm.flow.core.entity.RootEntity
    • setDelFlag

      public T setDelFlag(String delFlag)
      Specified by:
      setDelFlag in interface org.dromara.warm.flow.core.entity.RootEntity