package com.jasamedika.medifirst2000.entities;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;

import com.jasamedika.medifirst2000.base.BaseMaster;
import com.jasamedika.medifirst2000.helper.Caption;

@Entity //@Audited
@Table(name = "JenisRespon_M")
public class JenisRespon extends BaseMaster {
	
	@NotNull(message = "JenisRespon tidak boleh kosong")
	@Column(name = "JenisRespon", nullable = false, length = 100)
	@Caption(value = "JenisRespon")
	private String jeniRespon;
	
	@NotNull(message = "Kd JenisRespon tidak boleh kosong")
	@Column(name = "KdJenisRespon", nullable = false)
	@Caption(value = "Kode JenisRespon")
	private Byte kdJenisRespon;
	
	@NotNull(message = "QJenisRespon tidak boleh kosong")
	@Column(name = "QJenisRespon", nullable = false)
	@Caption(value = "QJenisRespon")
	private short qJenisRespon;
	
	@Id
	@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "public.JenisRespon_m_id_seq")
	@javax.persistence.SequenceGenerator(name = "public.JenisRespon_m_id_seq", sequenceName = "public.JenisRespon_m_id_seq", allocationSize = 1)
	@Column(name = "id")
	protected Integer id;

	public Integer getId() {

		return id;
	}

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

	public String getJeniRespon() {
		return jeniRespon;
	}

	public void setJeniRespon(String jeniRespon) {
		this.jeniRespon = jeniRespon;
	}

	public Byte getKdJenisRespon() {
		return kdJenisRespon;
	}

	public void setKdJenisRespon(Byte kdJenisRespon) {
		this.kdJenisRespon = kdJenisRespon;
	}

	public short getqJenisRespon() {
		return qJenisRespon;
	}

	public void setqJenisRespon(short qJenisRespon) {
		this.qJenisRespon = qJenisRespon;
	}
}
