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;

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

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

	@ManyToOne
	@JoinColumn(name = "StatusMeninggalFk")
	@NotNull(message = "Status Meninggal Harus Diisi")
	@Caption(value = "Status Meninggal")
	private StatusMeninggalDunia statusMeninggal;

	@Column(name = "StatusMeninggalFk", insertable = false, updatable = false)
	private Integer statusMeninggalId;

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

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

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

}