package com.sunzee.model.domain;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Property;

@Entity
public class LocalOrderBean {

    @Id(autoincrement = true)
    private Long id;

    //@Property：设置一个非默认关系映射所对应的列名，默认是使用字段名，例如：@Property(nameInDb = "name")
    @Property(nameInDb = "name")
    private String name;

    @Property(nameInDb = "price")
    private double price;

    @Property(nameInDb = "paytype")
    private int payType;

    @Property(nameInDb = "sn")
    private String sn;

    @Property(nameInDb = "time")
    private String time;

    @Generated(hash = 1075047697)
    public LocalOrderBean(Long id, String name, double price, int payType,
                          String sn, String time) {
        this.id = id;
        this.name = name;
        this.price = price;
        this.payType = payType;
        this.sn = sn;
        this.time = time;
    }

    @Generated(hash = 1839645560)
    public LocalOrderBean() {
    }

    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 double getPrice() {
        return this.price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public int getPayType() {
        return this.payType;
    }

    public void setPayType(int payType) {
        this.payType = payType;
    }

    public String getSn() {
        return this.sn;
    }

    public void setSn(String sn) {
        this.sn = sn;
    }

    public String getTime() {
        return this.time;
    }

    public void setTime(String time) {
        this.time = time;
    }
}
