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;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

/**
 * class DiagnosaKeperawatan
 * 
 * @author Generator
 */
@Entity // @Audited
@Table(name = "DiagnosaKeperawatan_M")
public class DiagnosaKeperawatan extends BaseMaster {
	
	@Column(name = "DeskripsiDiagnosaKep", nullable = true, length = 1000)
	@Caption(value = "Deskripsi Diagnosa Kep")
	private String deskripsiDiagnosaKep;
	
	@Column(name = "namaDiagnosaKep", nullable = false)
	@Caption(value = "namaDiagnosaKep")
	private String namaDiagnosaKep;	
	
	@Column(name = "diagnosaKep", nullable = false)
	@Caption(value = "diagnosaKep")
	private String diagnosaKep;	

	@NotNull(message = "QDiagnosa Kep tidak boleh kosong")
	@Column(name = "QDiagnosaKep", nullable = false)
	@Caption(value = "QDiagnosa Kep")
	private Integer qDiagnosaKep;
	
	@Id
	@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "public.diagnosakeperawatan_m_id_seq")
	@javax.persistence.SequenceGenerator(name = "public.diagnosakeperawatan_m_id_seq", sequenceName = "public.diagnosakeperawatan_m_id_seq", allocationSize = 1)
	@Column(name = "id")
	protected Integer id;

	public Integer getId() {

		return id;
	}

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

	public String getDeskripsiDiagnosaKep() {
		return deskripsiDiagnosaKep;
	}

	public void setDeskripsiDiagnosaKep(String deskripsiDiagnosaKep) {
		this.deskripsiDiagnosaKep = deskripsiDiagnosaKep;
	}

	public String getNamaDiagnosaKep() {
		return namaDiagnosaKep;
	}

	public void setNamaDiagnosaKep(String namaDiagnosaKep) {
		this.namaDiagnosaKep = namaDiagnosaKep;
}

	public String getDiagnosaKep() {
		return diagnosaKep;
	}

	public void setDiagnosaKep(String diagnosaKep) {
		this.diagnosaKep = diagnosaKep;
	}

	public Integer getqDiagnosaKep() {
		return qDiagnosaKep;
	}

	public void setqDiagnosaKep(Integer qDiagnosaKep) {
		this.qDiagnosaKep = qDiagnosaKep;
	}
	
}