package com.jasamedika.medifirst2000.entities;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;

import org.hibernate.envers.Audited;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
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;

@Entity
@Table(name = "Agama_M")
@JsonIgnoreProperties({ "hibernateLazyInitializer", "handler" })
public class Agama extends BaseMaster {
	
	@NotNull(message = "Agama tidak boleh kosong")
	@Column(name = "Agama", nullable = false, length = 100)
	@Caption(value = "Agama")
	private String agama;

	@NotNull(message = "Kd Agama tidak boleh kosong")
	@Column(name = "KdAgama", nullable = false)
	@Caption(value = "Kode Agama")
	private Byte kdAgama;

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

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

	public String getAgama() {
		return agama;
	}

	public void setAgama(String agama) {
		this.agama = agama;
	}

	public Byte getKdAgama() {
		return kdAgama;
	}

	public void setKdAgama(Byte kdAgama) {
		this.kdAgama = kdAgama;
	}

	public short getqAgama() {
		return qAgama;
	}

	public void setqAgama(short qAgama) {
		this.qAgama = qAgama;
	}

	public Integer getId() {
		return id;
	}

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

}