package com.jasamedika.medifirst2000.entities;

import com.jasamedika.medifirst2000.base.BaseMaster;
import com.jasamedika.medifirst2000.helper.Caption;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.*;
import java.util.Date;

import static javax.persistence.GenerationType.SEQUENCE;

/**
 * class DiklatJurusan
 * 
 * @author Generator
 */
@Getter
@Setter
@Entity
@Table(name = "DiklatJurusan_M")
public class DiklatJurusan extends BaseMaster {

	@Column(name = "kdDiklatJurusan", nullable = false)
	@Caption(value = "kdDiklatJurusan")
	private Integer kdDiklatJurusan;

	@Column(name = "diklatJurusan", nullable = false)
	@Caption(value = "diklatJurusan")
	private String diklatJurusan;

	@ManyToOne
	@JoinColumn(name = "diklatJurusanHeadFk")
	@Caption(value = "diklatJurusanHead")
	private DiklatJurusan diklatJurusanHead;

	@Column(name = "diklatJurusanHeadFk", insertable = false, updatable = false)
	private Integer diklatJurusanHeadId;

	@Column(name = "qtySksMin", nullable = false)
	@Caption(value = "qtySksMin")
	private Integer qtySksMin;

	@Column(name = "noSkBerdiri")
	@Caption(value = "noSkBerdiri")
	private String noSkBerdiri;

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

	@Column(name = "kdStatusAkredistasiLast")
	@Caption(value = "kdStatusAkredistasiLast")
	private String kdStatusAkredistasiLast;

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

	@Column(name = "qdiklatJurusan")
	@Caption(value = "qdiklatJurusan")
	private Integer qdiklatJurusan;

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

}