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

	@NotNull(message = "Kd Kelompok Pelayanan tidak boleh kosong")
	@Column(name = "KdKelompokPelayanan", nullable = false)
	@Caption(value = "Kode Kelompok Pelayanan")
	private Byte kdKelompokPelayanan;

	@NotNull(message = "Kelompok Pelayanan tidak boleh kosong")
	@Column(name = "KelompokPelayanan", nullable = false, length = 75)
	@Caption(value = "Kelompok Pelayanan")
	private String kelompokPelayanan;

	@NotNull(message = "QKelompok Pelayanan tidak boleh kosong")
	@Column(name = "QKelompokPelayanan", nullable = false)
	@Caption(value = "QKelompok Pelayanan")
	private Byte qKelompokPelayanan;

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

}