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.*;

@Getter
@Setter
@Entity
@Table(name = "RM_DetailAktivitasKemandirian_M")
public class DetailAktivitasKemandirian extends BaseTransaction {

	@ManyToOne
	@JoinColumn(name = "objectTransferPasienInternalFk")
	@Caption(value = "Transfer Pasien Internal")
	@JsonBackReference
	private TransferPasienInternal transferPasienInternal;

	@Column(name = "objectTransferPasienInternalFk", columnDefinition = "CHAR(32)", insertable = false, updatable = false)
	private String transferPasienInternalId;

	@ManyToOne
	@JoinColumn(name = "objectTransferPasienExsternalFk")
	@Caption(value = "Transfer Pasien Exsternal")
	@JsonBackReference
	private TransferPasienExsternal transferPasienExsternal;

	@Column(name = "objectTransferPasienExsternalFk", columnDefinition = "CHAR(32)", insertable = false, updatable = false)
	private String transferPasienExsternalId;

	@ManyToOne
	@JoinColumn(name = "ObjectStatusMandiriFk")
	@Caption(value = "Object Status Mandiri")
	private StatusMandiri statusMandiri;

	@Column(name = "ObjectStatusMandiriFk", insertable = false, updatable = false)
	private Integer statusMandiriId;

	@ManyToOne
	@JoinColumn(name = "ObjectAktivitasKeandirianFk")
	@Caption(value = "Object Aktivias Kemandirian")
	private AktivitasKemandirian aktivitasKemandirian;

	@Column(name = "ObjectAktivitasKeandirianFk", insertable = false, updatable = false)
	private Integer aktivitasKemandirianId;

}