content: package com.gpmall.shopping.dal.entitys;
  
  import javax.persistence.Id;
  import javax.persistence.Table;
  import javax.persistence.Transient;
  import java.io.Serializable;
  import java.math.BigDecimal;
  import java.util.Date;
  
  @Table(name = "tb_item")
  public class Item implements Serializable {
  
      @Id
      private Long id;
  
      private String title;
  
      private String sellPoint;
  
      private BigDecimal price;
  
      private Integer num;
  
      private Integer limitNum;
  
      private String image;
  
      private Long cid;
  
      private Integer status;
  
      private Date created;
  
      private Date updated;
  
      @Transient
      private String imageBig;
  
      private static final long serialVersionUID = 1L;
  
      public Long getId() {
          return id;
      }
  
      public void setId(Long id) {
          this.id = id;
      }
  
      public String getTitle() {
          return title;
      }
  
      public void setTitle(String title) {
          this.title = title == null ? null : title.trim();
      }
  
      public String getSellPoint() {
          return sellPoint;
      }
  
      public void setSellPoint(String sellPoint) {
          this.sellPoint = sellPoint == null ? null : sellPoint.trim();
      }
  
      public BigDecimal getPrice() {
          return price;
      }
  
      public void setPrice(BigDecimal price) {
          this.price = price;
      }
  
      public Integer getNum() {
          return num;
      }
  
      public void setNum(Integer num) {
          this.num = num;
      }
  
      public Integer getLimitNum() {
          return limitNum;
      }
  
      public void setLimitNum(Integer limitNum) {
          this.limitNum = limitNum;
      }
  
      public String getImage() {
          return image;
      }
  
      public void setImage(String image) {
          this.image = image == null ? null : image.trim();
      }
  
      public Long getCid() {
          return cid;
      }
  
      public void setCid(Long cid) {
          this.cid = cid;
      }
  
      public Integer getStatus() {
          return status;
      }
  
      public void setStatus(Integer status) {
          this.status = status;
      }
  
      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;
      }
  
      public String[] getImages() {
          if (image != null && !"".equals(image)) {
              String[] strings = image.split(",");
              return strings;
          }
          return null;
      }
  
      public void setImageBig(String imageBig) {
          this.imageBig = imageBig;
      }
  
      public String getImageBig(){
          if (image != null && !"".equals(image)) {
              String[] strings = image.split(",");
              return strings[0];
          }
          return null;
      }
  
      @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(", title=").append(title);
          sb.append(", sellPoint=").append(sellPoint);
          sb.append(", price=").append(price);
          sb.append(", num=").append(num);
          sb.append(", limitNum=").append(limitNum);
          sb.append(", image=").append(image);
          sb.append(", cid=").append(cid);
          sb.append(", status=").append(status);
          sb.append(", created=").append(created);
          sb.append(", updated=").append(updated);
          sb.append(", serialVersionUID=").append(serialVersionUID);
          sb.append("]");
          return sb.toString();
      }
  }