package com.jasamedika.medifirst2000.entities;

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

import javax.persistence.*;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * class DetailRadiologi
 * 
 * @author Generator
 */
@Getter
@Setter
@Entity
@Table(name = "DetailRadiologi_T")
public class DetailRadiologi extends MedicalRecordTransaction {

	@Column(name = "Keluhan", length = 100)
	@Caption(value = "Keluhan")
	private String keluhan;

	@Column(name = "tglHaidTerkait", length = 100)
	@Caption(value = "Tanggal Haid Terkait")
	private Date tglHaidTerkait;

	@ManyToOne
	@JoinColumn(name = "OrderProdukFk")
	@NotNull(message = "OrderProduk Harus Diisi")
	@Caption(value = "OrderProduk")
	private OrderProduk orderProduk;

	@Column(name = "OrderProdukFk", columnDefinition = "CHAR(32)", insertable = false, updatable = false)
	private String orderProdukId;

}