Newer
Older
sink / src / main / java / org / flume / alarm / domain / DeviceConfig.java
zhout on 2 Mar 2022 2 KB first commit
package org.flume.alarm.domain;
// default package

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

/**
 * AlarmDeviceConfig entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "ALARM_DEVICE_CONFIG")
@SequenceGenerator(name = "SEQ_DEVICE_CONFIG_DBID", sequenceName = "SEQ_DEVICE_CONFIG_DBID", allocationSize=1,initialValue=1)
public class DeviceConfig implements java.io.Serializable {

	// Fields
 
	/**
	 * 
	 */
	private static final long serialVersionUID = -5334857844223334748L;
	private Long dbid;
	private String devid;
	private String sensorid;
	private Date writetime;
	private String framecontent;
	private Boolean status=false;
	private Date sendtime;
	private String sensorCode;

	// Constructors

	/** default constructor */
	public DeviceConfig() {
	}

	/** minimal constructor */
	public DeviceConfig(Long dbid) {
		this.dbid = dbid;
	}

	/** full constructor */
	public DeviceConfig(Long dbid, String devid, String sensorid,
						Date writetime, String framecontent, Boolean status,
						Date sendtime) {
		this.dbid = dbid;
		this.devid = devid;
		this.sensorid = sensorid;
		this.writetime = writetime;
		this.framecontent = framecontent;
		this.status = status;
		this.sendtime = sendtime;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "SEQ_DEVICE_CONFIG_DBID")
	@Column(name = "DBID")
	public Long getDbid() {
		return this.dbid;
	}

	public void setDbid(Long dbid) {
		this.dbid = dbid;
	}
 
	@Column(name = "DEVID")
	public String getDevid() {
		return this.devid;
	}

	public void setDevid(String devid) {
		this.devid = devid;
	}

	@Column(name = "SENSORID")
	public String getSensorid() {
		return this.sensorid;
	}

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

 
	@Column(name = "WRITETIME")
	public Date getWritetime() {
		return this.writetime;
	}

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

	@Column(name = "FRAMECONTENT")
	public String getFramecontent() {
		return this.framecontent;
	}

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

	@Column(name = "STATUS")
	public Boolean getStatus() {
		return this.status;
	}

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

	@Column(name = "SENDTIME")
	public Date getSendtime() {
		return this.sendtime;
	}

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

	@Column(name = "SENSORCODE")

	public String getSensorCode() {
		return sensorCode;
	}

	public void setSensorCode(String sensorCode) {
		this.sensorCode = sensorCode;
	}
}