All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.zodiac.flowable.demo.leave.model.entity.ProcessLeaveEntity Maven / Gradle / Ivy

There is a newer version: 1.6.8
Show newest version
package org.zodiac.flowable.demo.leave.model.entity;

import java.util.Date;
import java.util.Objects;

import org.zodiac.flowable.core.model.entity.ProcessFlowEntity;

/**
 * 请假流程实体类。
 *
 */
public class ProcessLeaveEntity extends ProcessFlowEntity {

    private static final long serialVersionUID = -3533118233976196174L;

    /**
     * 流程定义id
     */
    private String processDefinitionId;
    /**
     * 流程实例id
     */
    private String processInstanceId;
    /**
     * 请假开始时间
     */
    private Date startTime;
    /**
     * 请假结束时间
     */
    private Date endTime;
    /**
     * 请假理由
     */
    private String reason;
    /**
     * 审批人
     */
    private String taskUser;
    /**
     * 流程申请时间
     */
    private Date applyTime;

    public ProcessLeaveEntity() {
        super();
    }

    public String getProcessDefinitionId() {
        return processDefinitionId;
    }

    public void setProcessDefinitionId(String processDefinitionId) {
        this.processDefinitionId = processDefinitionId;
    }

    public String getProcessInstanceId() {
        return processInstanceId;
    }

    public void setProcessInstanceId(String processInstanceId) {
        this.processInstanceId = processInstanceId;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    public String getTaskUser() {
        return taskUser;
    }

    public void setTaskUser(String taskUser) {
        this.taskUser = taskUser;
    }

    public Date getApplyTime() {
        return applyTime;
    }

    public void setApplyTime(Date applyTime) {
        this.applyTime = applyTime;
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = super.hashCode();
        result = prime * result
            + Objects.hash(applyTime, endTime, processDefinitionId, processInstanceId, reason, startTime, taskUser);
        return result;
    }

    @Override
    public boolean equals(Object obj) {
        if (this == obj)
            return true;
        if (!super.equals(obj))
            return false;
        if (getClass() != obj.getClass())
            return false;
        ProcessLeaveEntity other = (ProcessLeaveEntity)obj;
        return Objects.equals(applyTime, other.applyTime) && Objects.equals(endTime, other.endTime)
            && Objects.equals(processDefinitionId, other.processDefinitionId)
            && Objects.equals(processInstanceId, other.processInstanceId) && Objects.equals(reason, other.reason)
            && Objects.equals(startTime, other.startTime) && Objects.equals(taskUser, other.taskUser);
    }

    @Override
    public String toString() {
        return "ProcessLeaveEntity [processDefinitionId=" + processDefinitionId + ", processInstanceId=" + processInstanceId
            + ", startTime=" + startTime + ", endTime=" + endTime + ", reason=" + reason + ", taskUser=" + taskUser
            + ", applyTime=" + applyTime + "]";
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy