package com.jasamedika.medifirst2000.entities;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.jasamedika.medifirst2000.helper.Caption;

@Entity
@Table(name = "Implementasi_M")
@JsonIgnoreProperties({ "hibernateLazyInitializer", "handler" })
public class Implementasi extends BaseKeyValueMaster {
	
	@Id
	@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "public.Implementasi_m_id_seq")
	@javax.persistence.SequenceGenerator(name = "public.Implementasi_m_id_seq", sequenceName = "public.Implementasi_m_id_seq", allocationSize = 1)
	@Column(name = "id")
	protected Integer id;
	
	@ManyToOne(fetch=FetchType.LAZY)
	@Caption(value="Object Diagnosi Keperawatan")
	@JoinColumn(name = "ObjectDiagnosaKeperawatanFk")
	private DiagnosaKeperawatan diagnosaKeperawatan;
	
	@Column(name = "ObjectDiagnosaKeperawatanFk", insertable=false,updatable=false, nullable=true)
	private Integer diagnosaKeperawatanId;

	@ManyToOne(fetch=FetchType.LAZY)
	@Caption(value="Object Head Implementasi")
	@JoinColumn(name = "ObjectHeadImplementasiFk")
	private Implementasi headImplementasi;
	
	@Column(name = "ObjectHeadImplementasiFk", insertable=false, updatable=false, nullable=true)
	private Integer headImplementasiId;
	
	public Integer getId() {

		return id;
	}

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

	public DiagnosaKeperawatan getDiagnosaKeperawatan() {
		return diagnosaKeperawatan;
	}

	public void setDiagnosaKeperawatan(DiagnosaKeperawatan diagnosaKeperawatan) {
		this.diagnosaKeperawatan = diagnosaKeperawatan;
	}

	public Integer getDiagnosaKeperawatanId() {
		return diagnosaKeperawatanId;
	}

	public void setDiagnosaKeperawatanId(Integer diagnosaKeperawatanId) {
		this.diagnosaKeperawatanId = diagnosaKeperawatanId;
	}

	public Implementasi getHeadImplementasi() {
		return headImplementasi;
	}

	public void setHeadImplementasi(Implementasi headImplementasi) {
		this.headImplementasi = headImplementasi;
	}

	public Integer getHeadImplementasiId() {
		return headImplementasiId;
	}

	public void setHeadImplementasiId(Integer headImplementasiId) {
		this.headImplementasiId = headImplementasiId;
	}

}
