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

	public void setKdTriase(Byte triase) {
		this.triase = triase;
	}

	public Byte getKdTriase() {
		return this.triase;
	}

	@NotNull(message = "Nama Triase tidak boleh kosong")
	@Column(name = "NamaTriase", nullable = false, length = 20)
	@Caption(value = "Nama Triase")
	private String namaTriase;

	public void setNamaTriase(String namaTriase) {
		this.namaTriase = namaTriase;
	}

	public String getNamaTriase() {
		return this.namaTriase;
	}

	@NotNull(message = "QTriase tidak boleh kosong")
	@Column(name = "QTriase", nullable = false)
	@Caption(value = "QTriase")
	private Byte qTriase;

	public void setqTriase(Byte qTriase) {
		this.qTriase = qTriase;
	}

	public Byte getqTriase() {
		return this.qTriase;
	}

	@NotNull(message = "Kd Triase tidak boleh kosong")
	@Column(name = "KdTriase", nullable = false)
	public Byte getTriase() {
		return triase;
	}

	public void setriase(Byte triase) {
		this.triase = triase;
	}

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

	public Integer getId() {

		return id;
	}

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