package org.well.well.domain;

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

@Entity
@Table(name = "bus_device_well")
public class DeviceWell implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = -2023118078562324658L;
	/**
	 * 主键
	 */

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "DEVICE_ID")
	private Long deviceId;
	/**
	 * 井主键
	 */
	@Column(name ="WELL_ID")
	private Long wellId;
	/**
	 * 时间戳
	 */
	@Column(name ="TS")
	private Date ts;
	/**
	 * 是否有效：1有效，0无效
	 */
	@Column(name ="VALID")
	private Boolean valid;


	public Long getDeviceId() {
		return deviceId;
	}

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

	public Long getWellId() {
		return wellId;
	}

	public void setWellId(Long wellId) {
		this.wellId = wellId;
	}

	public Date getTs() {
		return ts;
	}

	public void setTs(Date ts) {
		this.ts = ts;
	}

	public Boolean getValid() {
		return valid;
	}

	public void setValid(Boolean valid) {
		this.valid = valid;
	}
}
