package com.jasamedika.medifirst2000.vo;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.validation.constraints.NotNull;

import com.jasamedika.medifirst2000.base.vo.BaseTransactionVO;
import com.jasamedika.medifirst2000.helper.Caption;

import lombok.Getter;
import lombok.Setter;

/**
 * class StrukResepVO
 * 
 * @author Generator
 */
@Getter
@Setter
public class StrukResepVO extends BaseTransactionVO {
	private AntrianPasienDiPeriksaVO pasien;

	@Column(name = "NoResep", nullable = false, length = 100)
	@Caption(value = "NoResep")
	private String noResep;

	@Column(name = "TglResep", nullable = false, length = 100)
	@Caption(value = "TglResep")
	private Date tglResep;

	@ManyToOne
	@JoinColumn(name = "PenulisResepFk")
	@NotNull(message = "Penulis Resep Harus Diisi")
	@Caption(value = "Penulis Resep")
	private PegawaiVO penulisResep;

	@Column(name = "PenulisResepFk", insertable = false, updatable = false)
	private Integer penulisResepId;
}