package com.jasamedika.medifirst2000.entities;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.*;
import com.jasamedika.medifirst2000.entities.KelompokKompetensi;

import com.fasterxml.jackson.annotation.JsonBackReference;
import com.jasamedika.medifirst2000.base.BaseMaster;

import javax.validation.constraints.NotNull;
import com.jasamedika.medifirst2000.helper.Caption;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

/**
 * class JenisKompetensi
 * 
 * @author Generator
 */
@Entity
@Table(name = "sdm_JenisKompetensi_M")
public class JenisKompetensi extends BaseMaster {
	@ManyToOne
	@JoinColumn(name = "KelompokKompetensiFk")
	@NotNull(message = "Kelompok Kompetensi Harus Diisi")
	@Caption(value = "Kelompok Kompetensi")
	private KelompokKompetensi kelompokKompetensi;

	public KelompokKompetensi getKelompokKompetensi() {
		return kelompokKompetensi;
	}

	public void setKelompokKompetensi(KelompokKompetensi kelompokKompetensi) {
		this.kelompokKompetensi = kelompokKompetensi;
	}

	@Column(name = "KelompokKompetensiFk", insertable = false, updatable = false)
	private Integer kelompokKompetensiId;

	@Column(name = "JenisKompetensi", nullable = false, length = 100)
	@Caption(value = "JenisKompetensi")
	private String jenisKompetensi;

	public String getJenisKompetensi() {
		return jenisKompetensi;
	}

	public void setJenisKompetensi(String jenisKompetensi) {
		this.jenisKompetensi = jenisKompetensi;
	}

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

	public Integer getId() {

		return id;
	}

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