package com.dgtis.dorm.manager.db.domain;

import java.time.LocalDateTime;

public class Role {
    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column alumni_role.id
     *
     * @mbg.generated Wed Apr 18 13:21:47 CST 2018
     */
    private Integer id;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column alumni_role.role_name
     *
     * @mbg.generated Wed Apr 18 13:21:47 CST 2018
     */
    private String roleName;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column alumni_role.create_time
     *
     * @mbg.generated Wed Apr 18 13:21:47 CST 2018
     */
    private LocalDateTime createTime;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column alumni_role.create_user_id
     *
     * @mbg.generated Wed Apr 18 13:21:47 CST 2018
     */
    private String createUserId;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column alumni_role.modify_time
     *
     * @mbg.generated Wed Apr 18 13:21:47 CST 2018
     */
    private LocalDateTime modifyTime;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column alumni_role.modify_user_id
     *
     * @mbg.generated Wed Apr 18 13:21:47 CST 2018
     */
    private String modifyUserId;


    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column alumni_role.id
     *
     * @return the value of alumni_role.id
     *
     * @mbg.generated Wed Apr 18 13:21:47 CST 2018
     */
    public Integer getId() {
        return id;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column alumni_role.id
     *
     * @param id the value for alumni_role.id
     *
     * @mbg.generated Wed Apr 18 13:21:47 CST 2018
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column alumni_role.role_name
     *
     * @return the value of alumni_role.role_name
     *
     * @mbg.generated Wed Apr 18 13:21:47 CST 2018
     */
    public String getRoleName() {
        return roleName;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column alumni_role.role_name
     *
     * @param roleName the value for alumni_role.role_name
     *
     * @mbg.generated Wed Apr 18 13:21:47 CST 2018
     */
    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column alumni_role.create_time
     *
     * @return the value of alumni_role.create_time
     *
     * @mbg.generated Wed Apr 18 13:21:47 CST 2018
     */
    public LocalDateTime getCreateTime() {
        return createTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column alumni_role.create_time
     *
     * @param createTime the value for alumni_role.create_time
     *
     * @mbg.generated Wed Apr 18 13:21:47 CST 2018
     */
    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column alumni_role.create_user_id
     *
     * @return the value of alumni_role.create_user_id
     *
     * @mbg.generated Wed Apr 18 13:21:47 CST 2018
     */
    public String getCreateUserId() {
        return createUserId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column alumni_role.create_user_id
     *
     * @param createUserId the value for alumni_role.create_user_id
     *
     * @mbg.generated Wed Apr 18 13:21:47 CST 2018
     */
    public void setCreateUserId(String createUserId) {
        this.createUserId = createUserId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column alumni_role.modify_time
     *
     * @return the value of alumni_role.modify_time
     *
     * @mbg.generated Wed Apr 18 13:21:47 CST 2018
     */
    public LocalDateTime getModifyTime() {
        return modifyTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column alumni_role.modify_time
     *
     * @param modifyTime the value for alumni_role.modify_time
     *
     * @mbg.generated Wed Apr 18 13:21:47 CST 2018
     */
    public void setModifyTime(LocalDateTime modifyTime) {
        this.modifyTime = modifyTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column alumni_role.modify_user_id
     *
     * @return the value of alumni_role.modify_user_id
     *
     * @mbg.generated Wed Apr 18 13:21:47 CST 2018
     */
    public String getModifyUserId() {
        return modifyUserId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column alumni_role.modify_user_id
     *
     * @param modifyUserId the value for alumni_role.modify_user_id
     *
     * @mbg.generated Wed Apr 18 13:21:47 CST 2018
     */
    public void setModifyUserId(String modifyUserId) {
        this.modifyUserId = modifyUserId;
    }


    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table alumni_role
     *
     * @mbg.generated Wed Apr 18 13:21:47 CST 2018
     */
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", roleName=").append(roleName);
        sb.append(", createTime=").append(createTime);
        sb.append(", createUserId=").append(createUserId);
        sb.append(", modifyTime=").append(modifyTime);
        sb.append(", modifyUserId=").append(modifyUserId);
        sb.append("]");
        return sb.toString();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table alumni_role
     *
     * @mbg.generated Wed Apr 18 13:21:47 CST 2018
     */
    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Role other = (Role) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getRoleName() == null ? other.getRoleName() == null : this.getRoleName().equals(other.getRoleName()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getCreateUserId() == null ? other.getCreateUserId() == null : this.getCreateUserId().equals(other.getCreateUserId()))
            && (this.getModifyTime() == null ? other.getModifyTime() == null : this.getModifyTime().equals(other.getModifyTime()))
            && (this.getModifyUserId() == null ? other.getModifyUserId() == null : this.getModifyUserId().equals(other.getModifyUserId()));
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table alumni_role
     *
     * @mbg.generated Wed Apr 18 13:21:47 CST 2018
     */
    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getRoleName() == null) ? 0 : getRoleName().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getCreateUserId() == null) ? 0 : getCreateUserId().hashCode());
        result = prime * result + ((getModifyTime() == null) ? 0 : getModifyTime().hashCode());
        result = prime * result + ((getModifyUserId() == null) ? 0 : getModifyUserId().hashCode());
        return result;
    }

    /**
     * This enum was generated by MyBatis Generator.
     * This enum corresponds to the database table alumni_role
     *
     * @mbg.generated
     * @project https://github.com/itfsw/mybatis-generator-plugin
     */
    public enum Column {
        id("id"),
        roleName("role_name"),
        createTime("create_time"),
        createUserId("create_user_id"),
        modifyTime("modify_time"),
        modifyUserId("modify_user_id");

        /**
         * This field was generated by MyBatis Generator.
         * This field corresponds to the database table alumni_role
         *
         * @mbg.generated
         * @project https://github.com/itfsw/mybatis-generator-plugin
         */
        private final String column;

        /**
         * This method was generated by MyBatis Generator.
         * This method corresponds to the database table alumni_role
         *
         * @mbg.generated
         * @project https://github.com/itfsw/mybatis-generator-plugin
         */
        public String value() {
            return this.column;
        }

        /**
         * This method was generated by MyBatis Generator.
         * This method corresponds to the database table alumni_role
         *
         * @mbg.generated
         * @project https://github.com/itfsw/mybatis-generator-plugin
         */
        public String getValue() {
            return this.column;
        }

        /**
         * This method was generated by MyBatis Generator.
         * This method corresponds to the database table alumni_role
         *
         * @mbg.generated
         * @project https://github.com/itfsw/mybatis-generator-plugin
         */
        Column(String column) {
            this.column = column;
        }

        /**
         * This method was generated by MyBatis Generator.
         * This method corresponds to the database table alumni_role
         *
         * @mbg.generated
         * @project https://github.com/itfsw/mybatis-generator-plugin
         */
        public String desc() {
            return this.column + " DESC";
        }

        /**
         * This method was generated by MyBatis Generator.
         * This method corresponds to the database table alumni_role
         *
         * @mbg.generated
         * @project https://github.com/itfsw/mybatis-generator-plugin
         */
        public String asc() {
            return this.column + " ASC";
        }
    }
}