package com.jasamedika.medifirst2000.entities;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;

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 PemeriksaanTriage
 * 
 * @author Generator
 */
@Entity // @Audited
@Table(name = "RM_PemeriksaanTriage_M")
public class PemeriksaanTriage extends BaseMaster {
	@NotNull(message = "KdTriage tidak boleh kosong")
	@Column(name = "KdTriage", nullable = false, length = 100)
	@Caption(value = "KdTriage")
	private String kdTriage;

	public void setKdTriage(String kdTriage) {
		this.kdTriage = kdTriage;
	}

	public String getKdTriage() {
		return this.kdTriage;
	}

	@NotNull(message = "NamaTriage tidak boleh kosong")
	@Column(name = "NamaTriage", nullable = false, length = 100)
	@Caption(value = "NamaTriage")
	private String namaTriage;

	public void setNamaTriage(String namaTriage) {
		this.namaTriage = namaTriage;
	}

	public String getNamaTriage() {
		return this.namaTriage;
	}

	@NotNull(message = "JenisPemeriksaan tidak boleh kosong")
	@Column(name = "JenisPemeriksaan", nullable = false, length = 100)
	@Caption(value = "JenisPemeriksaan")
	private String jenisPemeriksaan;

	public void setJenisPemeriksaan(String jenisPemeriksaan) {
		this.jenisPemeriksaan = jenisPemeriksaan;
	}

	public String getJenisPemeriksaan() {
		return this.jenisPemeriksaan;
	}

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

	public Integer getId() {

		return id;
	}

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