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;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
@Entity
@Table(name = "ListTanggalCuti_T")
@JsonIgnoreProperties({ "hibernateLazyInitializer", "handler" })
public class ListTanggalCuti extends BaseTransaction {

	@Caption(value = "tgl")
	@Column(name = "tgl")
	private Date tgl;

	@Caption(value = "Approval Status")
	@Column(name = "ApprovalStatus")
	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)
	private String planningPegawaiStatusId;

}
