content: package com.gpmall.shopping.dal.entitys;
  
  import tk.mybatis.mapper.annotation.KeySql;
  
  import javax.persistence.Id;
  import javax.persistence.Table;
  import java.io.Serializable;
  import java.util.Date;
  
  @Table(name = "tb_item_cat")
  public class ItemCat implements Serializable {
      @Id
      @KeySql(useGeneratedKeys = true)
      private Long id;
  
      private Long parentId;
  
      private String name;
  
      private Integer status;
  
      private Integer sortOrder;
  
      private Boolean isParent;
  
      private String icon;
  
      private String remark;
  
      private Date created;
  
      private Date updated;
  
      private static final long serialVersionUID = 1L;
  
      public Long getId() {
          return id;
      }
  
      public void setId(Long id) {
          this.id = id;
      }
  
      public Long getParentId() {
          return parentId;
      }
  
      public void setParentId(Long parentId) {
          this.parentId = parentId;
      }
  
      public String getName() {
          return name;
      }
  
      public void setName(String name) {
          this.name = name == null ? null : name.trim();
      }
  
      public Integer getStatus() {
          return status;
      }
  
      public void setStatus(Integer status) {
          this.status = status;
      }
  
      public Integer getSortOrder() {
          return sortOrder;
      }
  
      public void setSortOrder(Integer sortOrder) {
          this.sortOrder = sortOrder;
      }
  
      public Boolean getIsParent() {
          return isParent;
      }
  
      public void setIsParent(Boolean isParent) {
          this.isParent = isParent;
      }
  
      public String getIcon() {
          return icon;
      }
  
      public void setIcon(String icon) {
          this.icon = icon == null ? null : icon.trim();
      }
  
      public String getRemark() {
          return remark;
      }
  
      public void setRemark(String remark) {
          this.remark = remark == null ? null : remark.trim();
      }
  
      public Date getCreated() {
          return created;
      }
  
      public void setCreated(Date created) {
          this.created = created;
      }
  
      public Date getUpdated() {
          return updated;
      }
  
      public void setUpdated(Date updated) {
          this.updated = updated;
      }
  
      @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(", parentId=").append(parentId);
          sb.append(", name=").append(name);
          sb.append(", status=").append(status);
          sb.append(", sortOrder=").append(sortOrder);
          sb.append(", isParent=").append(isParent);
          sb.append(", icon=").append(icon);
          sb.append(", remark=").append(remark);
          sb.append(", created=").append(created);
          sb.append(", updated=").append(updated);
          sb.append(", serialVersionUID=").append(serialVersionUID);
          sb.append("]");
          return sb.toString();
      }
  }