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 static javax.persistence.GenerationType.SEQUENCE;

@Getter
@Setter
@Entity
@Table(name = "KelompokJabatan_M")
public class KelompokJabatan extends BaseMaster {

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

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

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

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

}
