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 AsKepIntervensi
 * 
 * @author Generator
 */
@Getter
@Setter
@Entity
@Table(name = "AsKepIntervensi_M")
public class AsKepIntervensi extends BaseMaster {

	@NotNull(message = "Intervensi tidak boleh kosong")
	@Column(name = "Intervensi", nullable = false, length = 150)
	@Caption(value = "Intervensi")
	private String intervensi;

	@NotNull(message = "Kd Intervensi tidak boleh kosong")
	@Column(name = "KdIntervensi", nullable = false)
	@Caption(value = "Kode Intervensi")
	private Integer kdIntervensi;

	@NotNull(message = "QIntervensi tidak boleh kosong")
	@Column(name = "QIntervensi", nullable = false)
	@Caption(value = "QIntervensi")
	private Integer qIntervensi;

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

}