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 KeadaanUmum
 * 
 * @author Generator
 */
@Entity // @Audited
@Table(name = "KeadaanUmum_M")
public class KeadaanUmum extends BaseMaster {
	@NotNull(message = "Kd Keadaan Umum tidak boleh kosong")
	@Column(name = "KdKeadaanUmum", nullable = false)
	@Caption(value = "Kode Keadaan Umum")
	private Byte kdKeadaanUmum;

	public void setKdKeadaanUmum(Byte kdKeadaanUmum) {
		this.kdKeadaanUmum = kdKeadaanUmum;
	}

	public Byte getKdKeadaanUmum() {
		return this.kdKeadaanUmum;
	}

	@NotNull(message = "Keadaan Umum tidak boleh kosong")
	@Column(name = "KeadaanUmum", nullable = false, length = 30)
	@Caption(value = "Keadaan Umum")
	private String keadaanUmum;

	public void setKeadaanUmum(String keadaanUmum) {
		this.keadaanUmum = keadaanUmum;
	}

	public String getKeadaanUmum() {
		return this.keadaanUmum;
	}

	@NotNull(message = "QKeadaan Umum tidak boleh kosong")
	@Column(name = "QKeadaanUmum", nullable = false)
	@Caption(value = "QKeadaan Umum")
	private Byte qKeadaanUmum;

	public void setqKeadaanUmum(Byte qKeadaanUmum) {
		this.qKeadaanUmum = qKeadaanUmum;
	}

	public Byte getqKeadaanUmum() {
		return this.qKeadaanUmum;
	}

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

	public Integer getId() {

		return id;
	}

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