silentbalanceyh/vertx-zero

View on GitHub
vertx-pin/zero-erp/src/main/java/cn/vertxup/erp/domain/tables/pojos/TVendorAssessment.java

Summary

Maintainability
F
1 wk
Test Coverage
/*
 * This file is generated by jOOQ.
 */
package cn.vertxup.erp.domain.tables.pojos;


import cn.vertxup.erp.domain.tables.interfaces.ITVendorAssessment;
import io.github.jklingsporn.vertx.jooq.shared.internal.VertxPojo;

import java.time.LocalDateTime;
/**
 * This class is generated by jOOQ.
 */
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class TVendorAssessment implements VertxPojo, ITVendorAssessment {

    private static final long serialVersionUID = 1L;

    private String key;
    private String commentExtension;
    private String classification;
    private LocalDateTime startAt;
    private LocalDateTime endAt;
    private Integer days;
    private String assessOn;
    private Integer assessScore;
    private String commentDept;
    private String commentAssess;
    private String commentLeader;

    public TVendorAssessment() {}

    public TVendorAssessment(ITVendorAssessment value) {
        this.key = value.getKey();
        this.commentExtension = value.getCommentExtension();
        this.classification = value.getClassification();
        this.startAt = value.getStartAt();
        this.endAt = value.getEndAt();
        this.days = value.getDays();
        this.assessOn = value.getAssessOn();
        this.assessScore = value.getAssessScore();
        this.commentDept = value.getCommentDept();
        this.commentAssess = value.getCommentAssess();
        this.commentLeader = value.getCommentLeader();
    }

    public TVendorAssessment(
        String key,
        String commentExtension,
        String classification,
        LocalDateTime startAt,
        LocalDateTime endAt,
        Integer days,
        String assessOn,
        Integer assessScore,
        String commentDept,
        String commentAssess,
        String commentLeader
    ) {
        this.key = key;
        this.commentExtension = commentExtension;
        this.classification = classification;
        this.startAt = startAt;
        this.endAt = endAt;
        this.days = days;
        this.assessOn = assessOn;
        this.assessScore = assessScore;
        this.commentDept = commentDept;
        this.commentAssess = commentAssess;
        this.commentLeader = commentLeader;
    }

        public TVendorAssessment(io.vertx.core.json.JsonObject json) {
                this();
                fromJson(json);
        }

    /**
     * Getter for <code>DB_ETERNAL.T_VENDOR_ASSESSMENT.KEY</code>. 「key」- Ticket
     * Primary Key
     */
    @Override
    public String getKey() {
        return this.key;
    }

    /**
     * Setter for <code>DB_ETERNAL.T_VENDOR_ASSESSMENT.KEY</code>. 「key」- Ticket
     * Primary Key
     */
    @Override
    public TVendorAssessment setKey(String key) {
        this.key = key;
        return this;
    }

    /**
     * Getter for <code>DB_ETERNAL.T_VENDOR_ASSESSMENT.COMMENT_EXTENSION</code>.
     * 「commentExtension」- Extension Comment
     */
    @Override
    public String getCommentExtension() {
        return this.commentExtension;
    }

    /**
     * Setter for <code>DB_ETERNAL.T_VENDOR_ASSESSMENT.COMMENT_EXTENSION</code>.
     * 「commentExtension」- Extension Comment
     */
    @Override
    public TVendorAssessment setCommentExtension(String commentExtension) {
        this.commentExtension = commentExtension;
        return this;
    }

    /**
     * Getter for <code>DB_ETERNAL.T_VENDOR_ASSESSMENT.CLASSIFICATION</code>.
     * 「classification」- The ticket related business type
     */
    @Override
    public String getClassification() {
        return this.classification;
    }

    /**
     * Setter for <code>DB_ETERNAL.T_VENDOR_ASSESSMENT.CLASSIFICATION</code>.
     * 「classification」- The ticket related business type
     */
    @Override
    public TVendorAssessment setClassification(String classification) {
        this.classification = classification;
        return this;
    }

    /**
     * Getter for <code>DB_ETERNAL.T_VENDOR_ASSESSMENT.START_AT</code>.
     * 「startAt」- From
     */
    @Override
    public LocalDateTime getStartAt() {
        return this.startAt;
    }

    /**
     * Setter for <code>DB_ETERNAL.T_VENDOR_ASSESSMENT.START_AT</code>.
     * 「startAt」- From
     */
    @Override
    public TVendorAssessment setStartAt(LocalDateTime startAt) {
        this.startAt = startAt;
        return this;
    }

    /**
     * Getter for <code>DB_ETERNAL.T_VENDOR_ASSESSMENT.END_AT</code>. 「endAt」-
     * To
     */
    @Override
    public LocalDateTime getEndAt() {
        return this.endAt;
    }

    /**
     * Setter for <code>DB_ETERNAL.T_VENDOR_ASSESSMENT.END_AT</code>. 「endAt」-
     * To
     */
    @Override
    public TVendorAssessment setEndAt(LocalDateTime endAt) {
        this.endAt = endAt;
        return this;
    }

    /**
     * Getter for <code>DB_ETERNAL.T_VENDOR_ASSESSMENT.DAYS</code>. 「days」-
     * Duration
     */
    @Override
    public Integer getDays() {
        return this.days;
    }

    /**
     * Setter for <code>DB_ETERNAL.T_VENDOR_ASSESSMENT.DAYS</code>. 「days」-
     * Duration
     */
    @Override
    public TVendorAssessment setDays(Integer days) {
        this.days = days;
        return this;
    }

    /**
     * Getter for <code>DB_ETERNAL.T_VENDOR_ASSESSMENT.ASSESS_ON</code>.
     * 「assessOn」- The user that will be assessed
     */
    @Override
    public String getAssessOn() {
        return this.assessOn;
    }

    /**
     * Setter for <code>DB_ETERNAL.T_VENDOR_ASSESSMENT.ASSESS_ON</code>.
     * 「assessOn」- The user that will be assessed
     */
    @Override
    public TVendorAssessment setAssessOn(String assessOn) {
        this.assessOn = assessOn;
        return this;
    }

    /**
     * Getter for <code>DB_ETERNAL.T_VENDOR_ASSESSMENT.ASSESS_SCORE</code>.
     * 「assessScore」- The score of the user
     */
    @Override
    public Integer getAssessScore() {
        return this.assessScore;
    }

    /**
     * Setter for <code>DB_ETERNAL.T_VENDOR_ASSESSMENT.ASSESS_SCORE</code>.
     * 「assessScore」- The score of the user
     */
    @Override
    public TVendorAssessment setAssessScore(Integer assessScore) {
        this.assessScore = assessScore;
        return this;
    }

    /**
     * Getter for <code>DB_ETERNAL.T_VENDOR_ASSESSMENT.COMMENT_DEPT</code>.
     * 「commentDept」- from department
     */
    @Override
    public String getCommentDept() {
        return this.commentDept;
    }

    /**
     * Setter for <code>DB_ETERNAL.T_VENDOR_ASSESSMENT.COMMENT_DEPT</code>.
     * 「commentDept」- from department
     */
    @Override
    public TVendorAssessment setCommentDept(String commentDept) {
        this.commentDept = commentDept;
        return this;
    }

    /**
     * Getter for <code>DB_ETERNAL.T_VENDOR_ASSESSMENT.COMMENT_ASSESS</code>.
     * 「commentAssess」- from assess
     */
    @Override
    public String getCommentAssess() {
        return this.commentAssess;
    }

    /**
     * Setter for <code>DB_ETERNAL.T_VENDOR_ASSESSMENT.COMMENT_ASSESS</code>.
     * 「commentAssess」- from assess
     */
    @Override
    public TVendorAssessment setCommentAssess(String commentAssess) {
        this.commentAssess = commentAssess;
        return this;
    }

    /**
     * Getter for <code>DB_ETERNAL.T_VENDOR_ASSESSMENT.COMMENT_LEADER</code>.
     * 「commentLeader」- from leader of project
     */
    @Override
    public String getCommentLeader() {
        return this.commentLeader;
    }

    /**
     * Setter for <code>DB_ETERNAL.T_VENDOR_ASSESSMENT.COMMENT_LEADER</code>.
     * 「commentLeader」- from leader of project
     */
    @Override
    public TVendorAssessment setCommentLeader(String commentLeader) {
        this.commentLeader = commentLeader;
        return this;
    }

    @Override
    public boolean equals(Object obj) {
        if (this == obj)
            return true;
        if (obj == null)
            return false;
        if (getClass() != obj.getClass())
            return false;
        final TVendorAssessment other = (TVendorAssessment) obj;
        if (this.key == null) {
            if (other.key != null)
                return false;
        }
        else if (!this.key.equals(other.key))
            return false;
        if (this.commentExtension == null) {
            if (other.commentExtension != null)
                return false;
        }
        else if (!this.commentExtension.equals(other.commentExtension))
            return false;
        if (this.classification == null) {
            if (other.classification != null)
                return false;
        }
        else if (!this.classification.equals(other.classification))
            return false;
        if (this.startAt == null) {
            if (other.startAt != null)
                return false;
        }
        else if (!this.startAt.equals(other.startAt))
            return false;
        if (this.endAt == null) {
            if (other.endAt != null)
                return false;
        }
        else if (!this.endAt.equals(other.endAt))
            return false;
        if (this.days == null) {
            if (other.days != null)
                return false;
        }
        else if (!this.days.equals(other.days))
            return false;
        if (this.assessOn == null) {
            if (other.assessOn != null)
                return false;
        }
        else if (!this.assessOn.equals(other.assessOn))
            return false;
        if (this.assessScore == null) {
            if (other.assessScore != null)
                return false;
        }
        else if (!this.assessScore.equals(other.assessScore))
            return false;
        if (this.commentDept == null) {
            if (other.commentDept != null)
                return false;
        }
        else if (!this.commentDept.equals(other.commentDept))
            return false;
        if (this.commentAssess == null) {
            if (other.commentAssess != null)
                return false;
        }
        else if (!this.commentAssess.equals(other.commentAssess))
            return false;
        if (this.commentLeader == null) {
            if (other.commentLeader != null)
                return false;
        }
        else if (!this.commentLeader.equals(other.commentLeader))
            return false;
        return true;
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((this.key == null) ? 0 : this.key.hashCode());
        result = prime * result + ((this.commentExtension == null) ? 0 : this.commentExtension.hashCode());
        result = prime * result + ((this.classification == null) ? 0 : this.classification.hashCode());
        result = prime * result + ((this.startAt == null) ? 0 : this.startAt.hashCode());
        result = prime * result + ((this.endAt == null) ? 0 : this.endAt.hashCode());
        result = prime * result + ((this.days == null) ? 0 : this.days.hashCode());
        result = prime * result + ((this.assessOn == null) ? 0 : this.assessOn.hashCode());
        result = prime * result + ((this.assessScore == null) ? 0 : this.assessScore.hashCode());
        result = prime * result + ((this.commentDept == null) ? 0 : this.commentDept.hashCode());
        result = prime * result + ((this.commentAssess == null) ? 0 : this.commentAssess.hashCode());
        result = prime * result + ((this.commentLeader == null) ? 0 : this.commentLeader.hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder("TVendorAssessment (");

        sb.append(key);
        sb.append(", ").append(commentExtension);
        sb.append(", ").append(classification);
        sb.append(", ").append(startAt);
        sb.append(", ").append(endAt);
        sb.append(", ").append(days);
        sb.append(", ").append(assessOn);
        sb.append(", ").append(assessScore);
        sb.append(", ").append(commentDept);
        sb.append(", ").append(commentAssess);
        sb.append(", ").append(commentLeader);

        sb.append(")");
        return sb.toString();
    }

    // -------------------------------------------------------------------------
    // FROM and INTO
    // -------------------------------------------------------------------------

    @Override
    public void from(ITVendorAssessment from) {
        setKey(from.getKey());
        setCommentExtension(from.getCommentExtension());
        setClassification(from.getClassification());
        setStartAt(from.getStartAt());
        setEndAt(from.getEndAt());
        setDays(from.getDays());
        setAssessOn(from.getAssessOn());
        setAssessScore(from.getAssessScore());
        setCommentDept(from.getCommentDept());
        setCommentAssess(from.getCommentAssess());
        setCommentLeader(from.getCommentLeader());
    }

    @Override
    public <E extends ITVendorAssessment> E into(E into) {
        into.from(this);
        return into;
    }
}