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 AsKepJenisKajian
 * 
 * @author Generator
 */
@Getter
@Setter
@Entity
@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;

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

	@NotNull(message = "QJenis Kajian tidak boleh kosong")
	@Column(name = "QJenisKajian", nullable = false)
	@Caption(value = "QJenis Kajian")
	private Byte qJenisKajian;

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

}