package com.jasamedika.medifirst2000.entities;

import java.io.Serializable;
import org.hibernate.envers.Audited;
import javax.persistence.*;

import org.hibernate.validator.constraints.NotEmpty;

import com.jasamedika.medifirst2000.base.BaseMaster;
import javax.validation.constraints.NotNull;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.internal.util.logging.Messages;

import com.fasterxml.jackson.annotation.JsonManagedReference;
import com.jasamedika.medifirst2000.base.BaseMaster;
import com.jasamedika.medifirst2000.helper.Caption;
import org.hibernate.envers.Audited;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

/**
 * class KualitasHasil
 * 
 * @author Generator
 */
@Entity // @Audited
@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;

	public void setKdKualitasHasil(Byte kdKualitasHasil) {
		this.kdKualitasHasil = kdKualitasHasil;
	}

	public Byte getKdKualitasHasil() {
		return this.kdKualitasHasil;
	}

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

	public void setKualitasHasil(String kualitasHasil) {
		this.kualitasHasil = kualitasHasil;
	}

	public String getKualitasHasil() {
		return this.kualitasHasil;
	}

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

	public void setqKualitasHasil(Byte qKualitasHasil) {
		this.qKualitasHasil = qKualitasHasil;
	}

	public Byte getqKualitasHasil() {
		return this.qKualitasHasil;
	}

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

	public Integer getId() {

		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}
}