package com.jasamedika.medifirst2000.entities;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

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

@Entity
@Table(name="ListTanggalCuti_T")
@JsonIgnoreProperties({"hibernateLazyInitializer", "handler"})
public class ListTanggalCuti extends BaseTransaction{
	
	@Caption(value="tgl")
	@Column(name="tgl", nullable=true)
	private Date tgl;
	
	@Caption(value="Approval Status")
	@Column(name="ApprovalStatus", nullable=true)
	private Boolean approvalStatus;
	
	@ManyToOne(fetch=FetchType.LAZY)
	@JoinColumn(name="ObjectPlanningPegawaiStatusFK")
	@Caption(value="Object Planning Pegawai Status")
	private PlanningPegawaiStatus planningPegawaiStatus;
	
	@Column(name="ObjectPlanningPegawaiStatusFK", insertable=false, updatable=false, nullable = true)
	private String planningPegawaiStatusId;

	public Date getTgl() {
		return tgl;
	}

	public void setTgl(Date tgl) {
		this.tgl = tgl;
	}

	public Boolean getApprovalStatus() {
		return approvalStatus;
	}

	public void setApprovalStatus(Boolean approvalStatus) {
		this.approvalStatus = approvalStatus;
	}

	public PlanningPegawaiStatus getPlanningPegawaiStatus() {
		return planningPegawaiStatus;
	}

	public void setPlanningPegawaiStatus(PlanningPegawaiStatus planningPegawaiStatus) {
		this.planningPegawaiStatus = planningPegawaiStatus;
	}

	public String getPlanningPegawaiStatusId() {
		return planningPegawaiStatusId;
	}

	public void setPlanningPegawaiStatusId(String planningPegawaiStatusId) {
		this.planningPegawaiStatusId = planningPegawaiStatusId;
	}


}
