package com.jasamedika.medifirst2000.entities;

import com.jasamedika.medifirst2000.base.BaseTransaction;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.*;

import static javax.persistence.FetchType.LAZY;

@Getter
@Setter
@Entity
@Table(name = "MapPasienBayiToPasienIbu_T")
public class MapPasienBayiToPasienIbu extends BaseTransaction {

	@ManyToOne(fetch = LAZY)
	@JoinColumn(name = "noCmBayiFK")
	private Pasien noCmBayi;

	@Column(name = "noCmBayiFK", nullable = false, insertable = false, updatable = false)
	private Integer noCmBayiId;

	@ManyToOne(fetch = LAZY)
	@JoinColumn(name = "noCmIbuFK")
	private Pasien noCmIbu;

	@Column(name = "noCmIbuFK", nullable = false, insertable = false, updatable = false)
	private Integer noCmIbuId;

}
