package com.jasamedika.medifirst2000.entities;

import com.fasterxml.jackson.annotation.JsonBackReference;
import com.jasamedika.medifirst2000.base.BaseTransaction;
import com.jasamedika.medifirst2000.helper.Caption;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.*;
import javax.validation.constraints.NotNull;

/**
 * class Agama
 * 
 * @author Generator
 */
@Getter
@Setter
@Entity
@Table(name = "RM_DetailPenyakitObstetriLainnya_T")
public class DetailPenyakitObstetriLainnya extends BaseTransaction {

	@ManyToOne
	@JoinColumn(name = "papObtsetriFk")
	@Caption(value = "Obstetri")
	@JsonBackReference
	@NotNull(message = "Obstetri Harus Diisi")
	private PapObstetri papObstetri;

	@Column(name = "papObsetriFk", insertable = false, updatable = false, nullable = false)
	private String papObstetriId;

	@ManyToOne
	@JoinColumn(name = "DetailPenyakitLainnyaFk")
	@Caption(value = "Detail Penyakit Lainnya")
	@JsonBackReference
	@NotNull(message = "Ditail Penyakit Lainnya")
	private DetailPenyakitLainnya detailPenyakitLainnya;

	@Column(name = "DetailPenyakitLainnyaFk", insertable = false, updatable = false, nullable = false)
	private Integer detailPenyakitLainnyaId;

	@Column(name = "checked")
	private Boolean checked;

	@Column(name = "diskripsi", nullable = false, length = 100)
	@Caption(value = "diskripsi")
	private String diskripsi;

}
