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 JenisPegawaiOperasi
 * 
 * @author Generator
 */
@Getter
@Setter
@Entity
@Table(name = "RM_JenisPegawaiOperasi_M")
public class JenisPegawaiOperasi extends BaseMaster {

	@NotNull(message = "JenisPegawai tidak boleh kosong")
	@Column(name = "JenisPegawai", nullable = false, length = 100)
	@Caption(value = "JenisPegawai")
	private String jenisPegawai;

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

}