package com.jasamedika.medifirst2000.entities;

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

import javax.persistence.*;
import javax.validation.constraints.NotNull;

@Getter
@Setter
@Entity
@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;

}
