package com.jasamedika.medifirst2000.entities;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;

import org.hibernate.envers.Audited;

import com.jasamedika.medifirst2000.base.BaseTransaction;

@Entity //@Audited
@Table(name = "AlatTerpasang_T")
public class AlatTerpasangDetail extends BaseTransaction {
	
	@ManyToOne
	@JoinColumn(name = "AlatYangTerpasangFk")
	@NotNull(message = "Alat Yang Terpasang tidak boleh kosong")
	private AlatYangTerpasangCheckIn alatTerpasang;
	
	@Column(name = "AlatYangTerpasangFk", insertable=false,updatable=false)
	private Integer alatTerpasangId;
	@ManyToOne
	@JoinColumn(name = "CheckInFk")
	@NotNull(message = "CheckIn tidak boleh kosong")
	private CheckIn checkIn;

	public AlatYangTerpasangCheckIn getAlatTerpasang() {
		return alatTerpasang;
	}

	public void setAlatTerpasang(AlatYangTerpasangCheckIn alatTerpasang) {
		this.alatTerpasang = alatTerpasang;
	}

	public CheckIn getCheckIn() {
		return checkIn;
	}

	public void setCheckIn(CheckIn checkIn) {
		this.checkIn = checkIn;
	}

	
	
	

}
