package org.linlinjava.litemall.db.domain;

import java.time.LocalDateTime;

public class LitemallCategory {
    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column litemall_category.id
     *
     * @mbg.generated Sat Apr 07 10:22:31 CST 2018
     */
    private Integer id;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column litemall_category.name
     *
     * @mbg.generated Sat Apr 07 10:22:31 CST 2018
     */
    private String name;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column litemall_category.keywords
     *
     * @mbg.generated Sat Apr 07 10:22:31 CST 2018
     */
    private String keywords;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column litemall_category.front_desc
     *
     * @mbg.generated Sat Apr 07 10:22:31 CST 2018
     */
    private String frontDesc;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column litemall_category.parent_id
     *
     * @mbg.generated Sat Apr 07 10:22:31 CST 2018
     */
    private Integer parentId;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column litemall_category.sort_order
     *
     * @mbg.generated Sat Apr 07 10:22:31 CST 2018
     */
    private Byte sortOrder;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column litemall_category.show_index
     *
     * @mbg.generated Sat Apr 07 10:22:31 CST 2018
     */
    private Byte showIndex;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column litemall_category.is_show
     *
     * @mbg.generated Sat Apr 07 10:22:31 CST 2018
     */
    private Boolean isShow;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column litemall_category.banner_url
     *
     * @mbg.generated Sat Apr 07 10:22:31 CST 2018
     */
    private String bannerUrl;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column litemall_category.icon_url
     *
     * @mbg.generated Sat Apr 07 10:22:31 CST 2018
     */
    private String iconUrl;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column litemall_category.img_url
     *
     * @mbg.generated Sat Apr 07 10:22:31 CST 2018
     */
    private String imgUrl;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column litemall_category.wap_banner_url
     *
     * @mbg.generated Sat Apr 07 10:22:31 CST 2018
     */
    private String wapBannerUrl;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column litemall_category.level
     *
     * @mbg.generated Sat Apr 07 10:22:31 CST 2018
     */
    private String level;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column litemall_category.type
     *
     * @mbg.generated Sat Apr 07 10:22:31 CST 2018
     */
    private Integer type;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column litemall_category.front_name
     *
     * @mbg.generated Sat Apr 07 10:22:31 CST 2018
     */
    private String frontName;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column litemall_category.add_time
     *
     * @mbg.generated Sat Apr 07 10:22:31 CST 2018
     */
    private LocalDateTime addTime;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column litemall_category.deleted
     *
     * @mbg.generated Sat Apr 07 10:22:31 CST 2018
     */
    private Boolean deleted;

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column litemall_category.id
     *
     * @return the value of litemall_category.id
     *
     * @mbg.generated Sat Apr 07 10:22:31 CST 2018
     */
    public Integer getId() {
        return id;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column litemall_category.id
     *
     * @param id the value for litemall_category.id
     *
     * @mbg.generated Sat Apr 07 10:22:31 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 litemall_category.name
     *
     * @return the value of litemall_category.name
     *
     * @mbg.generated Sat Apr 07 10:22:31 CST 2018
     */
    public String getName() {
        return name;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column litemall_category.name
     *
     * @param name the value for litemall_category.name
     *
     * @mbg.generated Sat Apr 07 10:22:31 CST 2018
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column litemall_category.keywords
     *
     * @return the value of litemall_category.keywords
     *
     * @mbg.generated Sat Apr 07 10:22:31 CST 2018
     */
    public String getKeywords() {
        return keywords;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column litemall_category.keywords
     *
     * @param keywords the value for litemall_category.keywords
     *
     * @mbg.generated Sat Apr 07 10:22:31 CST 2018
     */
    public void setKeywords(String keywords) {
        this.keywords = keywords;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column litemall_category.front_desc
     *
     * @return the value of litemall_category.front_desc
     *
     * @mbg.generated Sat Apr 07 10:22:31 CST 2018
     */
    public String getFrontDesc() {
        return frontDesc;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column litemall_category.front_desc
     *
     * @param frontDesc the value for litemall_category.front_desc
     *
     * @mbg.generated Sat Apr 07 10:22:31 CST 2018
     */
    public void setFrontDesc(String frontDesc) {
        this.frontDesc = frontDesc;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column litemall_category.parent_id
     *
     * @return the value of litemall_category.parent_id
     *
     * @mbg.generated Sat Apr 07 10:22:31 CST 2018
     */
    public Integer getParentId() {
        return parentId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column litemall_category.parent_id
     *
     * @param parentId the value for litemall_category.parent_id
     *
     * @mbg.generated Sat Apr 07 10:22:31 CST 2018
     */
    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column litemall_category.sort_order
     *
     * @return the value of litemall_category.sort_order
     *
     * @mbg.generated Sat Apr 07 10:22:31 CST 2018
     */
    public Byte getSortOrder() {
        return sortOrder;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column litemall_category.sort_order
     *
     * @param sortOrder the value for litemall_category.sort_order
     *
     * @mbg.generated Sat Apr 07 10:22:31 CST 2018
     */
    public void setSortOrder(Byte sortOrder) {
        this.sortOrder = sortOrder;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column litemall_category.show_index
     *
     * @return the value of litemall_category.show_index
     *
     * @mbg.generated Sat Apr 07 10:22:31 CST 2018
     */
    public Byte getShowIndex() {
        return showIndex;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column litemall_category.show_index
     *
     * @param showIndex the value for litemall_category.show_index
     *
     * @mbg.generated Sat Apr 07 10:22:31 CST 2018
     */
    public void setShowIndex(Byte showIndex) {
        this.showIndex = showIndex;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column litemall_category.is_show
     *
     * @return the value of litemall_category.is_show
     *
     * @mbg.generated Sat Apr 07 10:22:31 CST 2018
     */
    public Boolean getIsShow() {
        return isShow;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column litemall_category.is_show
     *
     * @param isShow the value for litemall_category.is_show
     *
     * @mbg.generated Sat Apr 07 10:22:31 CST 2018
     */
    public void setIsShow(Boolean isShow) {
        this.isShow = isShow;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column litemall_category.banner_url
     *
     * @return the value of litemall_category.banner_url
     *
     * @mbg.generated Sat Apr 07 10:22:31 CST 2018
     */
    public String getBannerUrl() {
        return bannerUrl;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column litemall_category.banner_url
     *
     * @param bannerUrl the value for litemall_category.banner_url
     *
     * @mbg.generated Sat Apr 07 10:22:31 CST 2018
     */
    public void setBannerUrl(String bannerUrl) {
        this.bannerUrl = bannerUrl;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column litemall_category.icon_url
     *
     * @return the value of litemall_category.icon_url
     *
     * @mbg.generated Sat Apr 07 10:22:31 CST 2018
     */
    public String getIconUrl() {
        return iconUrl;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column litemall_category.icon_url
     *
     * @param iconUrl the value for litemall_category.icon_url
     *
     * @mbg.generated Sat Apr 07 10:22:31 CST 2018
     */
    public void setIconUrl(String iconUrl) {
        this.iconUrl = iconUrl;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column litemall_category.img_url
     *
     * @return the value of litemall_category.img_url
     *
     * @mbg.generated Sat Apr 07 10:22:31 CST 2018
     */
    public String getImgUrl() {
        return imgUrl;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column litemall_category.img_url
     *
     * @param imgUrl the value for litemall_category.img_url
     *
     * @mbg.generated Sat Apr 07 10:22:31 CST 2018
     */
    public void setImgUrl(String imgUrl) {
        this.imgUrl = imgUrl;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column litemall_category.wap_banner_url
     *
     * @return the value of litemall_category.wap_banner_url
     *
     * @mbg.generated Sat Apr 07 10:22:31 CST 2018
     */
    public String getWapBannerUrl() {
        return wapBannerUrl;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column litemall_category.wap_banner_url
     *
     * @param wapBannerUrl the value for litemall_category.wap_banner_url
     *
     * @mbg.generated Sat Apr 07 10:22:31 CST 2018
     */
    public void setWapBannerUrl(String wapBannerUrl) {
        this.wapBannerUrl = wapBannerUrl;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column litemall_category.level
     *
     * @return the value of litemall_category.level
     *
     * @mbg.generated Sat Apr 07 10:22:31 CST 2018
     */
    public String getLevel() {
        return level;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column litemall_category.level
     *
     * @param level the value for litemall_category.level
     *
     * @mbg.generated Sat Apr 07 10:22:31 CST 2018
     */
    public void setLevel(String level) {
        this.level = level;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column litemall_category.type
     *
     * @return the value of litemall_category.type
     *
     * @mbg.generated Sat Apr 07 10:22:31 CST 2018
     */
    public Integer getType() {
        return type;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column litemall_category.type
     *
     * @param type the value for litemall_category.type
     *
     * @mbg.generated Sat Apr 07 10:22:31 CST 2018
     */
    public void setType(Integer type) {
        this.type = type;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column litemall_category.front_name
     *
     * @return the value of litemall_category.front_name
     *
     * @mbg.generated Sat Apr 07 10:22:31 CST 2018
     */
    public String getFrontName() {
        return frontName;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column litemall_category.front_name
     *
     * @param frontName the value for litemall_category.front_name
     *
     * @mbg.generated Sat Apr 07 10:22:31 CST 2018
     */
    public void setFrontName(String frontName) {
        this.frontName = frontName;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column litemall_category.add_time
     *
     * @return the value of litemall_category.add_time
     *
     * @mbg.generated Sat Apr 07 10:22:31 CST 2018
     */
    public LocalDateTime getAddTime() {
        return addTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column litemall_category.add_time
     *
     * @param addTime the value for litemall_category.add_time
     *
     * @mbg.generated Sat Apr 07 10:22:31 CST 2018
     */
    public void setAddTime(LocalDateTime addTime) {
        this.addTime = addTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column litemall_category.deleted
     *
     * @return the value of litemall_category.deleted
     *
     * @mbg.generated Sat Apr 07 10:22:31 CST 2018
     */
    public Boolean getDeleted() {
        return deleted;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column litemall_category.deleted
     *
     * @param deleted the value for litemall_category.deleted
     *
     * @mbg.generated Sat Apr 07 10:22:31 CST 2018
     */
    public void setDeleted(Boolean deleted) {
        this.deleted = deleted;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table litemall_category
     *
     * @mbg.generated Sat Apr 07 10:22:31 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(", name=").append(name);
        sb.append(", keywords=").append(keywords);
        sb.append(", frontDesc=").append(frontDesc);
        sb.append(", parentId=").append(parentId);
        sb.append(", sortOrder=").append(sortOrder);
        sb.append(", showIndex=").append(showIndex);
        sb.append(", isShow=").append(isShow);
        sb.append(", bannerUrl=").append(bannerUrl);
        sb.append(", iconUrl=").append(iconUrl);
        sb.append(", imgUrl=").append(imgUrl);
        sb.append(", wapBannerUrl=").append(wapBannerUrl);
        sb.append(", level=").append(level);
        sb.append(", type=").append(type);
        sb.append(", frontName=").append(frontName);
        sb.append(", addTime=").append(addTime);
        sb.append(", deleted=").append(deleted);
        sb.append("]");
        return sb.toString();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table litemall_category
     *
     * @mbg.generated Sat Apr 07 10:22:31 CST 2018
     */
    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        LitemallCategory other = (LitemallCategory) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
            && (this.getKeywords() == null ? other.getKeywords() == null : this.getKeywords().equals(other.getKeywords()))
            && (this.getFrontDesc() == null ? other.getFrontDesc() == null : this.getFrontDesc().equals(other.getFrontDesc()))
            && (this.getParentId() == null ? other.getParentId() == null : this.getParentId().equals(other.getParentId()))
            && (this.getSortOrder() == null ? other.getSortOrder() == null : this.getSortOrder().equals(other.getSortOrder()))
            && (this.getShowIndex() == null ? other.getShowIndex() == null : this.getShowIndex().equals(other.getShowIndex()))
            && (this.getIsShow() == null ? other.getIsShow() == null : this.getIsShow().equals(other.getIsShow()))
            && (this.getBannerUrl() == null ? other.getBannerUrl() == null : this.getBannerUrl().equals(other.getBannerUrl()))
            && (this.getIconUrl() == null ? other.getIconUrl() == null : this.getIconUrl().equals(other.getIconUrl()))
            && (this.getImgUrl() == null ? other.getImgUrl() == null : this.getImgUrl().equals(other.getImgUrl()))
            && (this.getWapBannerUrl() == null ? other.getWapBannerUrl() == null : this.getWapBannerUrl().equals(other.getWapBannerUrl()))
            && (this.getLevel() == null ? other.getLevel() == null : this.getLevel().equals(other.getLevel()))
            && (this.getType() == null ? other.getType() == null : this.getType().equals(other.getType()))
            && (this.getFrontName() == null ? other.getFrontName() == null : this.getFrontName().equals(other.getFrontName()))
            && (this.getAddTime() == null ? other.getAddTime() == null : this.getAddTime().equals(other.getAddTime()))
            && (this.getDeleted() == null ? other.getDeleted() == null : this.getDeleted().equals(other.getDeleted()));
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table litemall_category
     *
     * @mbg.generated Sat Apr 07 10:22:31 CST 2018
     */
    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
        result = prime * result + ((getKeywords() == null) ? 0 : getKeywords().hashCode());
        result = prime * result + ((getFrontDesc() == null) ? 0 : getFrontDesc().hashCode());
        result = prime * result + ((getParentId() == null) ? 0 : getParentId().hashCode());
        result = prime * result + ((getSortOrder() == null) ? 0 : getSortOrder().hashCode());
        result = prime * result + ((getShowIndex() == null) ? 0 : getShowIndex().hashCode());
        result = prime * result + ((getIsShow() == null) ? 0 : getIsShow().hashCode());
        result = prime * result + ((getBannerUrl() == null) ? 0 : getBannerUrl().hashCode());
        result = prime * result + ((getIconUrl() == null) ? 0 : getIconUrl().hashCode());
        result = prime * result + ((getImgUrl() == null) ? 0 : getImgUrl().hashCode());
        result = prime * result + ((getWapBannerUrl() == null) ? 0 : getWapBannerUrl().hashCode());
        result = prime * result + ((getLevel() == null) ? 0 : getLevel().hashCode());
        result = prime * result + ((getType() == null) ? 0 : getType().hashCode());
        result = prime * result + ((getFrontName() == null) ? 0 : getFrontName().hashCode());
        result = prime * result + ((getAddTime() == null) ? 0 : getAddTime().hashCode());
        result = prime * result + ((getDeleted() == null) ? 0 : getDeleted().hashCode());
        return result;
    }

    /**
     * This enum was generated by MyBatis Generator.
     * This enum corresponds to the database table litemall_category
     *
     * @mbg.generated
     * @project https://github.com/itfsw/mybatis-generator-plugin
     */
    public enum Column {
        id("id"),
        name("name"),
        keywords("keywords"),
        frontDesc("front_desc"),
        parentId("parent_id"),
        sortOrder("sort_order"),
        showIndex("show_index"),
        isShow("is_show"),
        bannerUrl("banner_url"),
        iconUrl("icon_url"),
        imgUrl("img_url"),
        wapBannerUrl("wap_banner_url"),
        level("level"),
        type("type"),
        frontName("front_name"),
        addTime("add_time"),
        deleted("deleted");

        /**
         * This field was generated by MyBatis Generator.
         * This field corresponds to the database table litemall_category
         *
         * @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 litemall_category
         *
         * @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 litemall_category
         *
         * @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 litemall_category
         *
         * @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 litemall_category
         *
         * @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 litemall_category
         *
         * @mbg.generated
         * @project https://github.com/itfsw/mybatis-generator-plugin
         */
        public String asc() {
            return this.column + " ASC";
        }
    }
}