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

	@Column(name = "DeskripsiDiagnosaKep", 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 = SEQUENCE, generator = "public.diagnosakeperawatan_m_id_seq")
	@SequenceGenerator(name = "public.diagnosakeperawatan_m_id_seq", sequenceName = "public.diagnosakeperawatan_m_id_seq", allocationSize = 1)
	@Column(name = "id")
	protected Integer id;

}