package office.model;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import java.util.Date;

/**
 * Created by nolan on 06/06/2017.
 * description:
 */
@Entity
public class ADISaleMap {

    private Long id;
    private Long account;
    private String accountEmail;
    private Long sale;
    private String saleEmail;
    private String saleName;
    private Date createTime;
    private Date modifeTime;

    @Id
    @GeneratedValue(strategy= GenerationType.AUTO)
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getAccount() {
        return account;
    }

    public void setAccount(Long account) {
        this.account = account;
    }

    public String getAccountEmail() {
        return accountEmail;
    }

    public void setAccountEmail(String accountEmail) {
        this.accountEmail = accountEmail;
    }

    public Long getSale() {
        return sale;
    }

    public void setSale(Long sale) {
        this.sale = sale;
    }

    public String getSaleEmail() {
        return saleEmail;
    }

    public void setSaleEmail(String saleEmail) {
        this.saleEmail = saleEmail;
    }

    public String getSaleName() {
        return saleName;
    }

    public void setSaleName(String saleName) {
        this.saleName = saleName;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getModifeTime() {
        return modifeTime;
    }

    public void setModifeTime(Date modifeTime) {
        this.modifeTime = modifeTime;
    }

    @Override
    public String toString() {
        return "ADISaleMap{" +
            "id=" + id +
            ", account=" + account +
            ", accountEmail='" + accountEmail + '\'' +
            ", sale=" + sale +
            ", saleEmail='" + saleEmail + '\'' +
            ", saleName='" + saleName + '\'' +
            ", createTime=" + createTime +
            ", modifeTime=" + modifeTime +
            '}';
    }
}
