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

	@NotNull(message = "Hasil Komponen Klinis tidak boleh kosong")
	@Column(name = "HasilKomponenKlinis", nullable = false, length = 20)
	@Caption(value = "Hasil Komponen Klinis")
	private String hasilKomponenKlinis;

	@NotNull(message = "Kd Hasil Komponen Klinis tidak boleh kosong")
	@Column(name = "KdHasilKomponenKlinis", nullable = false)
	@Caption(value = "Kode Hasil Komponen Klinis")
	private Byte kdHasilKomponenKlinis;

	@NotNull(message = "QHasil Komponen Klinis tidak boleh kosong")
	@Column(name = "QHasilKomponenKlinis", nullable = false)
	@Caption(value = "QHasil Komponen Klinis")
	private Byte qHasilKomponenKlinis;

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

}