package org.well.well.domain;
// default package

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

/**
 * AlarmDeviceConfig entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "bus_config")
public class DeviceConfig implements java.io.Serializable {

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "ID")
	private Long id;
	/**
	 * 设备主键
	 */
	@Column(name = "DEVICE_ID")
	private Long deviceId;
	/**
	 * 配置信息
	 */
	@Column(name = "FRAMECONTENT")
	private String framecontent;
	/**
	 * 传感器设备编号
	 */
	@Column(name = "SENSORID")
	private String sensorid;
	/**
	 * 传感器编号
	 */
	@Column(name = "SENSORCODE")
	private String sensorcode;
	/**
	 * 状态（0:下发中，1：已下发）
	 */
	@Column(name = "STATUS")
	private Boolean status;
	/**
	 * 最大尝试次数
	 */
	@Column(name = "ATTEMPTSMAX")
	private Integer attemptsmax;
	/**
	 * 当前尝试次数
	 */
	@Column(name = "ATTEMPTSCURRENT")
	private Integer attemptscurrent;
	/**
	 * 下发时间
	 */
	@Column(name = "SENDTIME")
	private Date sendtime;
	/**
	 * 界面配置时间
	 */
	@Column(name = "WRITETIME")
	private Date writetime;

	public Long getId() {
		return id;
	}

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

	public Long getDeviceId() {
		return deviceId;
	}

	public void setDeviceId(Long deviceId) {
		this.deviceId = deviceId;
	}

	public String getFramecontent() {
		return framecontent;
	}

	public void setFramecontent(String framecontent) {
		this.framecontent = framecontent;
	}

	public String getSensorid() {
		return sensorid;
	}

	public void setSensorid(String sensorid) {
		this.sensorid = sensorid;
	}

	public String getSensorcode() {
		return sensorcode;
	}

	public void setSensorcode(String sensorcode) {
		this.sensorcode = sensorcode;
	}

	public Boolean getStatus() {
		return status;
	}

	public void setStatus(Boolean status) {
		this.status = status;
	}

	public Integer getAttemptsmax() {
		return attemptsmax;
	}

	public void setAttemptsmax(Integer attemptsmax) {
		this.attemptsmax = attemptsmax;
	}

	public Integer getAttemptscurrent() {
		return attemptscurrent;
	}

	public void setAttemptscurrent(Integer attemptscurrent) {
		this.attemptscurrent = attemptscurrent;
	}

	public Date getSendtime() {
		return sendtime;
	}

	public void setSendtime(Date sendtime) {
		this.sendtime = sendtime;
	}

	public Date getWritetime() {
		return writetime;
	}

	public void setWritetime(Date writetime) {
		this.writetime = writetime;
	}
}