package com.jasamedika.medifirst2000.entities;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
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;

/**
 * class DiklatJurusan
 * 
 * @author Generator
 */
@Entity
@Table(name = "MapDiklatProgramToDiklatJurusan_M")
public class MapDiklatProgramToDiklatJurusan extends BaseMaster {

	@ManyToOne
	@JoinColumn(name = "diklatProgramFk")
	@Caption(value = "diklatProgram")
	private DiklatProgram diklatProgram;

	@Column(name = "diklatProgramFk", insertable = false, updatable = false, nullable = false)
	private Integer diklatProgramId;

	@ManyToOne
	@JoinColumn(name = "diklatJurusanFk")
	@Caption(value = "diklatJurusan")
	private DiklatJurusan diklatJurusan;

	@Column(name = "diklatJurusanFk", insertable = false, updatable = false, nullable = false)
	private Integer diklatJurusanId;

	public DiklatProgram getDiklatProgram() {
		return diklatProgram;
	}

	public void setDiklatProgram(DiklatProgram diklatProgram) {
		this.diklatProgram = diklatProgram;
	}

	public Integer getDiklatProgramId() {
		return diklatProgramId;
	}

	public void setDiklatProgramId(Integer diklatProgramId) {
		this.diklatProgramId = diklatProgramId;
	}

	public DiklatJurusan getDiklatJurusan() {
		return diklatJurusan;
	}

	public void setDiklatJurusan(DiklatJurusan diklatJurusan) {
		this.diklatJurusan = diklatJurusan;
	}

	public Integer getDiklatJurusanId() {
		return diklatJurusanId;
	}

	public void setDiklatJurusanId(Integer diklatJurusanId) {
		this.diklatJurusanId = diklatJurusanId;
	}

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

	public Integer getId() {
		return id;
	}

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

}