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 StatusHasil
 * 
 * @author Generator
 */
@Entity // @Audited
@Table(name = "StatusHasil_M")
public class StatusHasil extends BaseMaster {
	@NotNull(message = "Kd Status Hasil tidak boleh kosong")
	@Column(name = "KdStatusHasil", nullable = false)
	@Caption(value = "Kode Status Hasil")
	private Byte kdStatusHasil;

	public void setKdStatusHasil(Byte kdStatusHasil) {
		this.kdStatusHasil = kdStatusHasil;
	}

	public Byte getKdStatusHasil() {
		return this.kdStatusHasil;
	}

	@NotNull(message = "QStatus Hasil tidak boleh kosong")
	@Column(name = "QStatusHasil", nullable = false)
	@Caption(value = "QStatus Hasil")
	private Byte qStatusHasil;

	public void setqStatusHasil(Byte qStatusHasil) {
		this.qStatusHasil = qStatusHasil;
	}

	public Byte getqStatusHasil() {
		return this.qStatusHasil;
	}

	@NotNull(message = "Status Hasil tidak boleh kosong")
	@Column(name = "StatusHasil", nullable = false, length = 20)
	@Caption(value = "Status Hasil")
	private String statusHasil;

	public void setStatusHasil(String statusHasil) {
		this.statusHasil = statusHasil;
	}

	public String getStatusHasil() {
		return this.statusHasil;
	}

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

	public Integer getId() {

		return id;
	}

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