package com.jasamedika.medifirst2000.entities;

import com.jasamedika.medifirst2000.base.BaseMaster;
import com.jasamedika.medifirst2000.helper.Caption;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.*;
import javax.validation.constraints.NotNull;

import static javax.persistence.GenerationType.SEQUENCE;

/**
 * class AsKepKategoryKajian
 * 
 * @author Generator
 */
@Getter
@Setter
@Entity
@Table(name = "AsKepKategoryKajian_M")
public class AsKepKategoryKajian extends BaseMaster {

	@NotNull(message = "Kategory Kajian tidak boleh kosong")
	@Column(name = "KategoryKajian", nullable = false, length = 50)
	@Caption(value = "Kategory Kajian")
	private String kategoryKajian;

	@NotNull(message = "Kd Kategory Kajian tidak boleh kosong")
	@Column(name = "KdKategoryKajian", nullable = false)
	@Caption(value = "Kode Kategory Kajian")
	private Byte kdKategoryKajian;

	@Caption(value = "QKategory Kajian")
	private Byte qKategoryKajian;

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

}