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 AkibatHaid
 * 
 * @author Generator
 */
@Getter
@Setter
@Entity
@Table(name = "HasilPemeriksaanImage_T")
public class HasilPemeriksaanImage extends BaseTransaction {

	@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;

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

}