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 javax.validation.constraints.NotNull;

import static javax.persistence.GenerationType.SEQUENCE;

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

	@NotNull(message = "Jenis Jabatan tidak boleh kosong")
	@Column(name = "JenisJabatan", nullable = false, length = 30)
	@Caption(value = "Jenis Jabatan")
	private String jenisJabatan;

	@NotNull(message = "Kd Jenis Jabatan tidak boleh kosong")
	@Column(name = "KdJenisJabatan", nullable = false, length = 1)
	@Caption(value = "Kode Jenis Jabatan")
	private String kdJenisJabatan;

	@NotNull(message = "QJenis Jabatan tidak boleh kosong")
	@Column(name = "QJenisJabatan", nullable = false)
	@Caption(value = "QJenis Jabatan")
	private Byte qJenisJabatan;

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

}