package org.well.well.domain;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;


@Entity
@Table(name = "bus_imei_iccid")
public class Imei implements Serializable {

	private static final long serialVersionUID = -2442455395413792947L;
	private Long id;
	private String devCode;
	private String iemi;
	private String iccid;
    private Date loginTime;

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "ID")
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}

	@Column(name = "DEVCODE")
	public String getDevCode() {
		return devCode;
	}

	public void setDevCode(String devCode) {
		this.devCode = devCode;
	}

	@Column(name = "IMEI")
	public String getIemi() {
		return iemi;
	}

	public void setIemi(String iemi) {
		this.iemi = iemi;
	}

	@Column(name = "ICCID")
	public String getIccid() {
		return iccid;
	}

	public void setIccid(String iccid) {
		this.iccid = iccid;
	}

	@Column(name = "LOGTIME")
	public Date getLoginTime() {
		return loginTime;
	}

	public void setLoginTime(Date loginTime) {
		this.loginTime = loginTime;
	}

	public Imei(String devCode, String iemi, String iccid) {
		this.devCode = devCode;
		this.iemi = iemi;
		this.iccid = iccid;
		this.loginTime = new Date();
	}
}
