package com.jasamedika.medifirst2000.entities;

import java.io.Serializable;
import org.hibernate.envers.Audited;
import java.lang.reflect.Field;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;

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 com.jasamedika.medifirst2000.util.CommonUtil;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

@Entity
@Table(name = "AsalRujukan_M")
public class AsalRujukan extends BaseMaster {

	@Id
	@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "public.asalrujukan_m_id_seq")
	@javax.persistence.SequenceGenerator(name = "public.asalrujukan_m_id_seq", sequenceName = "public.asalrujukan_m_id_seq", allocationSize = 1)
	@Column(name = "id")
	protected Integer id;
	
	@NotNull(message = "Asal Rujukan tidak boleh kosong")
	@Column(name = "AsalRujukan", nullable = false, length = 30)
	@Caption(value = "Asal Rujukan")
	private String asalRujukan;

	@NotNull(message = "Kd Asal Rujukan tidak boleh kosong")
	@Column(name = "KdAsalRujukan", nullable = false, length = 1)
	@Caption(value = "Kode Asal Rujukan")
	private String kdAsalRujukan;

	@NotNull(message = "QAsal Rujukan tidak boleh kosong")
	@Column(name = "QAsalRujukan", nullable = false)
	@Caption(value = "QAsal Rujukan")
	private Byte qAsalRujukan;

	public Integer getId() {
		return id;
	}

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

	public String getAsalRujukan() {
		return asalRujukan;
	}

	public void setAsalRujukan(String asalRujukan) {
		this.asalRujukan = asalRujukan;
	}

	public String getKdAsalRujukan() {
		return kdAsalRujukan;
	}

	public void setKdAsalRujukan(String kdAsalRujukan) {
		this.kdAsalRujukan = kdAsalRujukan;
	}

	public Byte getqAsalRujukan() {
		return qAsalRujukan;
	}

	public void setqAsalRujukan(Byte qAsalRujukan) {
		this.qAsalRujukan = qAsalRujukan;
	}

}