package com.jasamedika.medifirst2000.entities;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.jasamedika.medifirst2000.base.BaseTransaction;

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

	@ManyToOne(fetch=FetchType.LAZY)
	@JoinColumn(name="noCmBayiFK")
	private Pasien noCmBayi;
	
	@Column(name="noCmBayiFK", nullable=false, insertable=false, updatable=false)
	private Integer noCmBayiId;
	
	@ManyToOne(fetch=FetchType.LAZY)
	@JoinColumn(name="noCmIbuFK")
	private Pasien noCmIbu;
	
	@Column(name="noCmIbuFK", nullable=false, insertable=false, updatable=false)
	private Integer noCmIbuId;

	public Pasien getNoCmBayi() {
		return noCmBayi;
	}

	public void setNoCmBayi(Pasien noCmBayi) {
		this.noCmBayi = noCmBayi;
	}

	public Integer getNoCmBayiId() {
		return noCmBayiId;
	}

	public void setNoCmBayiId(Integer noCmBayiId) {
		this.noCmBayiId = noCmBayiId;
	}

	public Pasien getNoCmIbu() {
		return noCmIbu;
	}

	public void setNoCmIbu(Pasien noCmIbu) {
		this.noCmIbu = noCmIbu;
	}

	public Integer getNoCmIbuId() {
		return noCmIbuId;
	}

	public void setNoCmIbuId(Integer noCmIbuId) {
		this.noCmIbuId = noCmIbuId;
	}
	
}
