package com.jasamedika.medifirst2000.entities;

import java.io.Serializable;
import org.hibernate.envers.Audited;
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;

/**
 * class AsKepIntervensi
 * 
 * @author Generator
 */
@Entity // @Audited
@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;

	public void setIntervensi(String intervensi) {
		this.intervensi = intervensi;
	}

	public String getIntervensi() {
		return this.intervensi;
	}

	@Caption(value = "Kode Intervensi")
	private Integer kdIntervensi;

	@NotNull(message = "Kd Intervensi tidak boleh kosong")
	@Column(name = "KdIntervensi", nullable = false)
	public Integer getKdIntervensi() {
		return kdIntervensi;
	}

	public void setKdIntervensi(Integer kdIntervensi) {
		this.kdIntervensi = kdIntervensi;
	}

	@Caption(value = "QIntervensi")
	private Integer qIntervensi;

	@NotNull(message = "QIntervensi tidak boleh kosong")
	@Column(name = "QIntervensi", nullable = false)
	public Integer getqIntervensi() {
		return qIntervensi;
	}

	public void setqIntervensi(Integer qIntervensi) {
		this.qIntervensi = qIntervensi;
	}

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

	public Integer getId() {

		return id;
	}

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