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

	@NotNull(message = "Jenis Kondisi Pasien tidak boleh kosong")
	@Column(name = "JenisKondisiPasien", nullable = false, length = 30)
	@Caption(value = "Jenis Kondisi Pasien")
	private String jenisKondisiPasien;

	@NotNull(message = "Kd Jenis Kondisi Pasien tidak boleh kosong")
	@Column(name = "KdJenisKondisiPasien", nullable = false, length = 1)
	@Caption(value = "Kode Jenis Kondisi Pasien")
	private String kdJenisKondisiPasien;

	@NotNull(message = "QJenis Kondisi Pasien tidak boleh kosong")
	@Column(name = "QJenisKondisiPasien", nullable = false)
	@Caption(value = "QJenis Kondisi Pasien")
	private Byte qJenisKondisiPasien;

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

}