package org.well.well.domain;

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

@Entity
@Table(name = "data_wellcover")
public class Well implements Serializable {

	private static final long serialVersionUID = 429994083551525856L;
	private Long dbId;
	private String devCode;
	private String wellCode;
	private String desc;
	private String status;
	private Date logtime;
	
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "ID")
	public Long getDbId() {
		return dbId;
	}
	public void setDbId(Long dbId) {
		this.dbId = dbId;
	}

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

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


	@Column(name = "DESCN")
	public String getDesc() {
		return desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}


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

	@Column(name = "LOGTIME")
	public Date getLogtime() {
		return logtime;
	}
	public void setLogtime(Date logtime) {
		this.logtime = logtime;
	}

	@Column(name = "WELL_CODE")
	public String getWellCode() {
		return wellCode;
	}

	public void setWellCode(String wellCode) {
		this.wellCode = wellCode;
	}

	public Well(String devCode, String wellCode,String desc, String status) {
		this.devCode = devCode;
		this.wellCode = wellCode;
		this.desc = desc;
		this.status = status;
		this.logtime = new Date();
	}
}
