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

@Entity
@Table(name = "MapKelompokShiftToShift_M")
public class MapKelompokShiftToShift extends BaseMaster {

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "ObjectKelompokShiftFk")
	@Caption(value = "Kelompok Shift")
	private KelompokShift kelompokShift;

	@Column(name = "ObjectKelompokShiftFk", insertable = false, updatable = false, nullable = true)
	private Integer kelompokShiftId;

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "ObjectShiftKerjaFk")
	@Caption(value = "Object ShiftKerja")
	private ShiftKerja shiftKerja;

	@Column(name = "ObjectShiftKerjaFk", insertable = false, updatable = false, nullable = true)
	private Integer shiftKerjaId;

	public KelompokShift getKelompokShift() {
		return kelompokShift;
	}

	public void setKelompokShift(KelompokShift kelompokShift) {
		this.kelompokShift = kelompokShift;
	}

	public Integer getKelompokShiftId() {
		return kelompokShiftId;
	}

	public void setKelompokShiftId(Integer kelompokShiftId) {
		this.kelompokShiftId = kelompokShiftId;
	}

	public ShiftKerja getShiftKerja() {
		return shiftKerja;
	}

	public void setShiftKerja(ShiftKerja shiftKerja) {
		this.shiftKerja = shiftKerja;
	}

	public Integer getShiftKerjaId() {
		return shiftKerjaId;
	}

	public void setShiftKerjaId(Integer shiftKerjaId) {
		this.shiftKerjaId = shiftKerjaId;
	}

	@Id
	@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "public.MapKelompokShiftToShift_M_id_seq")
	@javax.persistence.SequenceGenerator(name = "public.MapKelompokShiftToShift_M_id_seq", sequenceName = "public.MapKelompokShiftToShift_M_id_seq", allocationSize = 1)
	@Column(name = "id")
	protected Integer id;

	public Integer getId() {
		return id;
	}

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