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.base.BaseMaster;
import com.jasamedika.medifirst2000.helper.Caption;

@Entity
@Table(name = "AsuhanKeperawatanPeriOperatif_M")
@JsonIgnoreProperties({"hibernateLazyInitializer", "handler"})
public class AsuhanKeperawatanPeriOperatif extends BaseMaster {
	@Id
	@GeneratedValue(
			strategy = GenerationType.SEQUENCE, 
			generator = "public.asuhankeperawatanperioperatif_m_id_seq")
	@javax.persistence.SequenceGenerator(
			name = "public.asuhankeperawatanperioperatif_m_id_seq", 
			sequenceName = "public.asuhankeperawatanperioperatif_m_id_seq", 
			allocationSize = 1)
	@Column(name = "id")
	protected Integer id;
	
	@Column(name = "FlagAsuhan", length = 100)
	private String flagAsuhan;
	
	@Column(name = "FlagHeader", length = 100)
	private String flagHeader;
	
	@Column(name = "Keterangan", length = 100)
	private String keterangan;
	
	@Column(name = "FlagParent", length = 100)
	private String flagParent;
	
	@Column(name = "IdParent", nullable=true)
	private int idParent;
	
	public int getIdParent() {
		return idParent;
	}

	public void setIdParent(int idParent) {
		this.idParent = idParent;
	}

	public String getFlagParent() {
		return flagParent;
	}

	public void setFlagParent(String flagParent) {
		this.flagParent = flagParent;
	}

	public Integer getId() {
		return id;
	}

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

	public String getFlagAsuhan() {
		return flagAsuhan;
	}

	public void setFlagAsuhan(String flagAsuhan) {
		this.flagAsuhan = flagAsuhan;
	}

	public String getKeterangan() {
		return keterangan;
	}

	public void setKeterangan(String keterangan) {
		this.keterangan = keterangan;
	}

	public String getFlagHeader() {
		return flagHeader;
	}

	public void setFlagHeader(String flagHeader) {
		this.flagHeader = flagHeader;
	}
	
}
