package com.jasamedika.medifirst2000.entities;

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

import com.jasamedika.medifirst2000.base.BaseMaster;
import com.jasamedika.medifirst2000.base.BaseTransaction;
import com.jasamedika.medifirst2000.helper.Caption;import org.hibernate.envers.Audited;

/**
 *  class AkibatHaid
 * 
 * @author Generator
 */
@Entity //@Audited
@Table(name = "HasilPemeriksaanImage_T")
public class HasilPemeriksaanImage extends BaseTransaction {
	public String getPath() {
		return path;
	}

	public void setPath(String path) {
		this.path = path;
	}

	@NotNull(message="Path tidak boleh kosong")
	@Column(name = "Path", nullable = false, length = 100)
	@Caption(value = "Path")
	private String path;
	
	
	@OneToOne
	@JoinColumn(name = "ObjectStrukOrderFk")
	@Caption(value="Object Struk OrderFk")
	private StrukOrder strukOrder;

	public StrukOrder getStrukOrder() {
		return strukOrder;
	}

	public void setStrukOrder(StrukOrder strukOrder) {
		this.strukOrder = strukOrder;
	}

	@Column(name = "ObjectStrukOrderFk", insertable=false,updatable=false)
	private String strukOrderId;
}