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

	@NotNull(message = "Jenis Infeksi Nosokomial tidak boleh kosong")
	@Column(name = "JenisInfeksiNosokomial", nullable = false, length = 30)
	@Caption(value = "Jenis Infeksi Nosokomial")
	private String jenisInfeksiNosokomial;

	@NotNull(message = "Kd Jenis Infeksi Nosokomial tidak boleh kosong")
	@Column(name = "KdJenisInfeksiNosokomial", nullable = false, length = 1)
	@Caption(value = "Kode Jenis Infeksi Nosokomial")
	private String kdJenisInfeksiNosokomial;

	@NotNull(message = "QJenis Infeksi Nosokomial tidak boleh kosong")
	@Column(name = "QJenisInfeksiNosokomial", nullable = false)
	@Caption(value = "QJenis Infeksi Nosokomial")
	private Byte qJenisInfeksiNosokomial;

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

}