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 = "DiklatKategori_M")
public class DiklatKategori extends BaseMaster {

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

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

	@ManyToOne
	@JoinColumn(name = "diklatKategoriHeadFk")
	@Caption(value = "diklatKategoriHead")
	private DiklatKategori diklatKategoriHead;

	@Column(name = "diklatKategoriHeadFk", insertable = false, updatable = false)
	private Integer diklatKategoriHeadId;

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

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

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

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

}