package com.jasamedika.medifirst2000.entities;

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;
import java.util.Date;

/**
 * class DataKeluarga
 * 
 * @author Generator
 */
@Getter
@Setter
@Entity
@Table(name = "sdm_DataKeluarga_T")
public class DataKeluarga extends BaseTransaction {

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

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

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

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

	@Column(name = "TanggalLahir", nullable = false, length = 100)
	@Caption(value = "TanggalLahir")
	private Date tanggalLahir;

	@ManyToOne
	@JoinColumn(name = "PekerjaanFk")
	@NotNull(message = "Pekerjaan Harus Diisi")
	@Caption(value = "Pekerjaan")
	private Pekerjaan pekerjaan;

	@Column(name = "PekerjaanFk", insertable = false, updatable = false)
	private Integer pekerjaanId;

	@ManyToOne
	@JoinColumn(name = "StatusKawinFk")
	@NotNull(message = "Status Kawin Harus Diisi")
	@Caption(value = "Status Kawin")
	private StatusKawin statusKawin;

	@Column(name = "StatusKawinFk", insertable = false, updatable = false)
	private Integer statusKawinId;

	@ManyToOne
	@JoinColumn(name = "TertanggungFk")
	@NotNull(message = "Tertanggung Harus Diisi")
	@Caption(value = "Tertanggung")
	private Tanggungan tertanggung;

	@Column(name = "TertanggungFk", insertable = false, updatable = false)
	private Integer tertanggungId;

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

	@Column(name = "TanggalSurat", nullable = false, length = 100)
	@Caption(value = "TanggalSurat")
	private Date tanggalSurat;

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

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

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

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

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

}