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

	public void setKdStatusAbsensi(Byte kdStatusAbsensi) {
		this.kdStatusAbsensi = kdStatusAbsensi;
	}

	public Byte getKdStatusAbsensi() {
		return this.kdStatusAbsensi;
	}

	@NotNull(message = "QStatus Absensi tidak boleh kosong")
	@Column(name = "QStatusAbsensi", nullable = false)
	@Caption(value = "QStatus Absensi")
	private Byte qStatusAbsensi;

	public void setqStatusAbsensi(Byte qStatusAbsensi) {
		this.qStatusAbsensi = qStatusAbsensi;
	}

	public Byte getqStatusAbsensi() {
		return this.qStatusAbsensi;
	}

	@NotNull(message = "Status Absensi tidak boleh kosong")
	@Column(name = "StatusAbsensi", nullable = false, length = 30)
	@Caption(value = "Status Absensi")
	private String statusAbsensi;

	public void setStatusAbsensi(String statusAbsensi) {
		this.statusAbsensi = statusAbsensi;
	}

	public String getStatusAbsensi() {
		return this.statusAbsensi;
	}

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

	public Integer getId() {

		return id;
	}

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