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

	@NotNull(message = "Kd Kualitas Hasil tidak boleh kosong")
	@Column(name = "KdKualitasHasil", nullable = false)
	@Caption(value = "Kode Kualitas Hasil")
	private Byte kdKualitasHasil;

	@NotNull(message = "Kualitas Hasil tidak boleh kosong")
	@Column(name = "KualitasHasil", nullable = false, length = 50)
	@Caption(value = "Kualitas Hasil")
	private String kualitasHasil;

	@NotNull(message = "QKualitas Hasil tidak boleh kosong")
	@Column(name = "QKualitasHasil", nullable = false)
	@Caption(value = "QKualitas Hasil")
	private Byte qKualitasHasil;

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

}