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 com.fasterxml.jackson.annotation.JsonBackReference;
import com.jasamedika.medifirst2000.base.BaseMaster;
import com.jasamedika.medifirst2000.base.BaseTransaction;
import com.jasamedika.medifirst2000.helper.Caption;
import com.jasamedika.medifirst2000.vo.StatusYaTidakVO;

import org.hibernate.envers.Audited;

/**
 *  class PemasanganCheckOutDetail
 * 
 * @author shakato
 */
@Entity //@Audited
@Table(name = "PemasanganCheckOutDetail_T")
public class PemasanganCheckOutDetail 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 = "ObjectPemasanganCheckOutFk")
	@Caption(value = "ID PemasanganCheckOut")
	@NotNull(message = "ID PemasanganCheckOut tidak boleh kosong")
	private PemasanganCheckOut pemasanganCheckOut;
	
	@Column(name = "ObjectPemasanganCheckOutFk", insertable = false, updatable = false, nullable = false)
	private Integer pemasanganCheckOutId;
	
	@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", nullable = true)
	@Caption(value = "keterangan")
	private String keterangan;

	public CheckOutOperation getCheckOutOperation() {
		return checkOutOperation;
	}

	public void setCheckOutOperation(CheckOutOperation checkOutOperation) {
		this.checkOutOperation = checkOutOperation;
	}

	public String getCheckOutOperationId() {
		return checkOutOperationId;
	}

	public void setCheckOutOperationId(String checkOutOperationId) {
		this.checkOutOperationId = checkOutOperationId;
	}

	public PemasanganCheckOut getPemasanganCheckOut() {
		return pemasanganCheckOut;
	}

	public void setPemasanganCheckOut(PemasanganCheckOut pemasanganCheckOut) {
		this.pemasanganCheckOut = pemasanganCheckOut;
	}

	public Integer getPemasanganCheckOutId() {
		return pemasanganCheckOutId;
	}

	public void setPemasanganCheckOutId(Integer pemasanganCheckOutId) {
		this.pemasanganCheckOutId = pemasanganCheckOutId;
	}

	public StatusYaTidak getStatusYaTidak() {
		return statusYaTidak;
	}

	public void setStatusYaTidak(StatusYaTidak statusYaTidak) {
		this.statusYaTidak = statusYaTidak;
	}

	public Integer getStatusYaTidakId() {
		return statusYaTidakId;
	}

	public void setStatusYaTidakId(Integer statusYaTidakId) {
		this.statusYaTidakId = statusYaTidakId;
	}

	public String getKeterangan() {
		return keterangan;
	}

	public void setKeterangan(String keterangan) {
		this.keterangan = keterangan;
	}

	
}