content: package com.hensen.greendaodemo.Bean;
  
  import android.widget.ImageView;
  
  import org.greenrobot.greendao.annotation.Entity;
  import org.greenrobot.greendao.annotation.Id;
  
  import java.io.Serializable;
  
  import org.greenrobot.greendao.annotation.Generated;
  import org.greenrobot.greendao.annotation.Property;
  import org.greenrobot.greendao.annotation.Unique;
  
  /**
   * Created by handsome on 2016/4/8.
   */
  @Entity
  public class Shop{
  
      public static final int TYPE_CART = 0x01;
      public static final int TYPE_LOVE = 0x02;
  
      //不能用int
      @Id(autoincrement = true)
      private Long id;
      @Unique
      private String name;
      @Property(nameInDb = "price")
      private String price;
      private int sell_num;
      private String image_url;
      private String address;
      private int type;
      @Generated(hash = 1304458862)
      public Shop(Long id, String name, String price, int sell_num, String image_url,
              String address, int type) {
          this.id = id;
          this.name = name;
          this.price = price;
          this.sell_num = sell_num;
          this.image_url = image_url;
          this.address = address;
          this.type = type;
      }
      @Generated(hash = 633476670)
      public Shop() {
      }
      public Long getId() {
          return this.id;
      }
      public void setId(Long id) {
          this.id = id;
      }
      public String getName() {
          return this.name;
      }
      public void setName(String name) {
          this.name = name;
      }
      public String getPrice() {
          return this.price;
      }
      public void setPrice(String price) {
          this.price = price;
      }
      public int getSell_num() {
          return this.sell_num;
      }
      public void setSell_num(int sell_num) {
          this.sell_num = sell_num;
      }
      public String getImage_url() {
          return this.image_url;
      }
      public void setImage_url(String image_url) {
          this.image_url = image_url;
      }
      public String getAddress() {
          return this.address;
      }
      public void setAddress(String address) {
          this.address = address;
      }
      public int getType() {
          return this.type;
      }
      public void setType(int type) {
          this.type = type;
      }
  
  }
  