package com.jasamedika.medifirst2000.entities;

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

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

/**
 * class KelengkapanCheckOutDetail
 * 
 * @author shakato
 */
@Getter
@Setter
@Entity
@Table(name = "KelengkapanCheckOutDetail_T")
public class KelengkapanCheckOutDetail extends BaseTransaction {

	@ManyToOne
	@JoinColumn(name = "ObjectCheckOutOperationFk")
	@Caption(value = "ID checkOutOperation")
	@NotNull(message = "ID checkOutOperation tidak boleh kosong")
	private CheckOutOperation checkOutOperation;

	@Column(name = "ObjectCheckOutOperationFk", columnDefinition = "CHAR(32)", insertable = false, updatable = false, nullable = false)
	private String checkOutOperationId;

	@ManyToOne
	@JoinColumn(name = "ObjectKelengkapanCheckOutFk")
	@Caption(value = "ID KelengkapanCheckOut")
	@NotNull(message = "ID KelengkapanCheckOut tidak boleh kosong")
	private KelengkapanCheckOut kelengkapanCheckOut;

	@Column(name = "ObjectKelengkapanCheckOutFk", insertable = false, updatable = false, nullable = false)
	private Integer kelengkapanCheckOutId;

	@ManyToOne
	@JoinColumn(name = "ObjectStatusYaTidakFk")
	@Caption(value = "ID StatusYaTidak")
	@NotNull(message = "ID StatusYaTidak tidak boleh kosong")
	private StatusYaTidak statusYaTidak;

	@Column(name = "ObjectStatusYaTidakFk", insertable = false, updatable = false, nullable = false)
	private Integer statusYaTidakId;

	@Column(name = "keterangan")
	@Caption(value = "keterangan")
	private String keterangan;

}