package com.jasamedika.medifirst2000.entities;

import java.io.Serializable;
import org.hibernate.envers.Audited;
import java.util.HashSet;
import java.util.Set;

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 AsKepJenisKajian
 * 
 * @author Generator
 */
@Entity // @Audited
@Table(name = "AsKepJenisKajian_M")
public class AsKepJenisKajian extends BaseMaster {
	@NotNull(message = "Jenis Kajian tidak boleh kosong")
	@Column(name = "JenisKajian", nullable = false, length = 50)
	@Caption(value = "Jenis Kajian")
	private String jenisKajian;

	public void setJenisKajian(String jenisKajian) {
		this.jenisKajian = jenisKajian;
	}

	public String getJenisKajian() {
		return this.jenisKajian;
	}

	@Caption(value = "Kode Jenis Kajian")
	private Byte kdJenisKajian;

	public Byte getKdJenisKajian() {
		return kdJenisKajian;
	}

	public void setKdJenisKajian(Byte kdJenisKajian) {
		this.kdJenisKajian = kdJenisKajian;
	}

	@Caption(value = "QJenis Kajian")
	private Byte qJenisKajian;

	@NotNull(message = "QJenis Kajian tidak boleh kosong")
	@Column(name = "QJenisKajian", nullable = false)
	public Byte getqJenisKajian() {
		return qJenisKajian;
	}

	public void setqJenisKajian(Byte qJenisKajian) {
		this.qJenisKajian = qJenisKajian;
	}

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

	public Integer getId() {

		return id;
	}

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