package com.dacrt.SBIABackend.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
@Entity
@Table(name = "technology", schema = "main")
public class Technology {
	
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private int id;
	
	@Column(name = "ref",length = 50)
	private String ref;
	
	@Column(name = "layer", nullable = false)
	private int layer;
	
	@Column(name = "type", nullable = false)
	private int type;
	
	@Column(name = "name",length = 128, nullable = false)
	private String name;
	
	@Column(name = "dsc")
	private String dsc;
	
	@Column(name = "eoleos", nullable = false)
	private int eoleos;
	
	@Column(name = "facilityid")
	private int facilityid;
	
	@Column(name = "applicationid")
	private int applicationid;
	
	@Column(name = "dr", nullable = false)
	private int dr;
	
	@Column(name = "hs", nullable = false)
	private int hs;
	
	@Column(name = "sla", nullable = false)
	private int sla;
	
	@Column(name = "monitored", nullable = false)
	private int monitored;
	
	@Column(name = "lastupdate")
    private Date lastupdate;

	@Column(name = "techowner",length = 128)
    private String techowner;
    
	@Column(name = "businessowner",length = 128)
    private String businessowner;
    
    @Column(name = "createdat", nullable = false)
    private Date createdat;
    
    @Column(name = "modifiedat", nullable = false)
    private Date modifiedat;
	
    @Column(name = "status", nullable = false)
    private int status;
    
    @Column(name = "classified", nullable = false)
    private int classified;

	public Technology() {
		super();
	}

	public Technology(int id, String ref, int layer, int type, String name, String dsc, int eoleos, int facilityid,
			int applicationid, int dr, int hs, int sla, int monitored, Date lastupdate, String techowner,
			String businessowner, Date createdat, Date modifiedat, int status, int classified) {
		super();
		this.id = id;
		this.ref = ref;
		this.layer = layer;
		this.type = type;
		this.name = name;
		this.dsc = dsc;
		this.eoleos = eoleos;
		this.facilityid = facilityid;
		this.applicationid = applicationid;
		this.dr = dr;
		this.hs = hs;
		this.sla = sla;
		this.monitored = monitored;
		this.lastupdate = lastupdate;
		this.techowner = techowner;
		this.businessowner = businessowner;
		this.createdat = createdat;
		this.modifiedat = modifiedat;
		this.status = status;
		this.classified = classified;
	}

	public int getId() {
		return id;
	}

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

	public String getRef() {
		return ref;
	}

	public void setRef(String ref) {
		this.ref = ref;
	}

	public int getLayer() {
		return layer;
	}

	public void setLayer(int layer) {
		this.layer = layer;
	}

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDsc() {
		return dsc;
	}

	public void setDsc(String dsc) {
		this.dsc = dsc;
	}

	public int getEoleos() {
		return eoleos;
	}

	public void setEoleos(int eoleos) {
		this.eoleos = eoleos;
	}

	public int getFacilityid() {
		return facilityid;
	}

	public void setFacilityid(int facilityid) {
		this.facilityid = facilityid;
	}

	public int getApplicationid() {
		return applicationid;
	}

	public void setApplicationid(int applicationid) {
		this.applicationid = applicationid;
	}

	public int getDr() {
		return dr;
	}

	public void setDr(int dr) {
		this.dr = dr;
	}

	public int getHs() {
		return hs;
	}

	public void setHs(int hs) {
		this.hs = hs;
	}

	public int getSla() {
		return sla;
	}

	public void setSla(int sla) {
		this.sla = sla;
	}

	public int getMonitored() {
		return monitored;
	}

	public void setMonitored(int monitored) {
		this.monitored = monitored;
	}

	public Date getLastupdate() {
		return lastupdate;
	}

	public void setLastupdate(Date lastupdate) {
		this.lastupdate = lastupdate;
	}

	public String getTechowner() {
		return techowner;
	}

	public void setTechowner(String techowner) {
		this.techowner = techowner;
	}

	public String getBusinessowner() {
		return businessowner;
	}

	public void setBusinessowner(String businessowner) {
		this.businessowner = businessowner;
	}

	public Date getCreatedat() {
		return createdat;
	}

	public void setCreatedat(Date createdat) {
		this.createdat = createdat;
	}

	public Date getModifiedat() {
		return modifiedat;
	}

	public void setModifiedat(Date modifiedat) {
		this.modifiedat = modifiedat;
	}

	public int getStatus() {
		return status;
	}

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

	public int getClassified() {
		return classified;
	}

	public void setClassified(int classified) {
		this.classified = classified;
	}
    
    
}
  