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.Column;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.MappedSuperclass;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * class MedicalRecordTransaction
 * 
 * @author Generator
 */
@Getter
@Setter
@MappedSuperclass
public class MedicalRecordTransaction extends BaseTransaction {

	@Caption(value = "Tanggal Registrasi")
	@Column(name = "TglRegistrasi")
	private Date tglRegistrasi;

	@ManyToOne
	@JoinColumn(name = "NoRegistrasiFk")
	@NotNull(message = "No Registrasi Harus Diisi")
	@Caption(value = "No Registrasi")
	private AntrianPasienDiPeriksa pasienDaftar;

	@Column(name = "NoRegistrasiFk", insertable = false, updatable = false)
	private String pasienDaftarId;

}
