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

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

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

	@ManyToOne
	@JoinColumn(name = "keadaanUmumObstetriFk")
	@Caption(value = "keadaanUmum")
	@NotNull(message = "keadaan Umum")
	private KeadaanUmumObstetri keadaanUmumObstetri;

	@Column(name = "keadaanUmumObstetriFk", insertable = false, updatable = false, nullable = false)
	private Integer keadaanUmumObstetriId;

	@Column(name = "deskripsi")
	@Caption(value = "deskripsi")
	private String deskripsi;

	@Column(name = "valueJantung")
	@Caption(value = "valueJantung")
	private String valueJantung;

	@Column(name = "valueParu")
	@Caption(value = "valueParu")
	private String valueParu;

	@Column(name = "valueKelainanSaraf")
	@Caption(value = "valueKelainanSaraf")
	private String valueKelainanSaraf;

	@Column(name = "valuePayudara")
	@Caption(value = "valuePayudara")
	private String valuePayudara;

	@Column(name = "valueKelainanOrtopedik")
	@Caption(value = "valueKelainanOrtopedik")
	private String valueKelainanOrtopedik;

	@Column(name = "valueLainLain")
	@Caption(value = "valueLainLain")
	private String valueLainLain;

	@Column(name = "value")
	@Caption(value = "value")
	private String value;

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

}