package com.jasamedika.medifirst2000.entities;

import java.util.Date;

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.jasamedika.medifirst2000.base.BaseTransaction;
import com.jasamedika.medifirst2000.base.vo.BaseTransactionVO;
import com.jasamedika.medifirst2000.helper.Caption;import org.hibernate.envers.Audited;

@Entity //@Audited
@Table(name = "PMDiagnosis_T")
public class PMDiagnosis extends BaseTransaction {
	/**
	 * @author Shakato
	 */

	@ManyToOne
	@JoinColumn(name = "JenisDiagnosa")
	@Caption(value = "Jenis Diagnosa")
	@NotNull(message = "Jenis Diagnosa tidak boleh kosong")
	private JenisDiagnosa jenisDiagnosa;
	
	@Column(name = "JenisDiagnosa", insertable = false, updatable = false, nullable = false)
	private Integer jenisDiagnosaId;
	
	@ManyToOne
	@JoinColumn(name = "Diagnosa")
	@Caption(value = "Diagnosa")
	@NotNull(message = "Diagnosa tidak boleh kosong")
	private Diagnosa diagnosa;
	
	@Column(name = "Diagnosa", insertable = false, updatable = false, nullable = false)
	private Integer diagnosaId;

	public JenisDiagnosa getJenisDiagnosa() {
		return jenisDiagnosa;
	}

	public void setJenisDiagnosa(JenisDiagnosa jenisDiagnosa) {
		this.jenisDiagnosa = jenisDiagnosa;
	}

	public Integer getJenisDiagnosaId() {
		return jenisDiagnosaId;
	}

	public void setJenisDiagnosaId(Integer jenisDiagnosaId) {
		this.jenisDiagnosaId = jenisDiagnosaId;
	}

	public Diagnosa getDiagnosa() {
		return diagnosa;
	}

	public void setDiagnosa(Diagnosa diagnosa) {
		this.diagnosa = diagnosa;
	}

	public Integer getDiagnosaId() {
		return diagnosaId;
	}

	public void setDiagnosaId(Integer diagnosaId) {
		this.diagnosaId = diagnosaId;
	}
	
	
}
