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;

/**
 * 
 * @author Generator
 */
@Entity // @Audited
@Table(name = "TingkatKelulusan_M")
public class TingkatKelulusan extends BaseMaster {
	@NotNull(message = "Tingkat Kelulusan tidak boleh kosong")
	@Column(name = "TingkatKelulusan", nullable = false, length = 100)
	@Caption(value = "Tingkat Kelulusan")
	private String tingkatKelulusan;

	@NotNull(message = "Kode Tingkat Kelulusan tidak boleh kosong")
	@Column(name = "KdTingkatKelulusan", nullable = false)
	@Caption(value = "Kode Tingkat Kelulusan")
	private short KdTingkatKelulusan;

	@NotNull(message = "QTingkatKelulusan tidak boleh kosong")
	@Column(name = "QTingkatKelulusan", nullable = false)
	@Caption(value = "QTingkatKelulusan")
	private short qTingkatKelulusan;

	public String getTingkatKelulusan() {
		return tingkatKelulusan;
	}

	public void setTingkatKelulusan(String tingkatKelulusan) {
		this.tingkatKelulusan = tingkatKelulusan;
	}

	public short getKdTingkatKelulusan() {
		return KdTingkatKelulusan;
	}

	public void setKdTingkatKelulusan(short kdTingkatKelulusan) {
		KdTingkatKelulusan = kdTingkatKelulusan;
	}

	public short getqTingkatKelulusan() {
		return qTingkatKelulusan;
	}

	public void setqTingkatKelulusan(short qTingkatKelulusan) {
		this.qTingkatKelulusan = qTingkatKelulusan;
	}

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

	public Integer getId() {

		return id;
	}

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