package com.jasamedika.medifirst2000.entities;

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.helper.Caption;import org.hibernate.envers.Audited;

@Entity //@Audited
@Table(name="PapPetugasPendamping_T")
public class PapPetugasPendamping extends BaseTransaction{
	@ManyToOne
	@JoinColumn(name = "ObjectPapInstruksiRanapFk")
	@NotNull(message = "PapInstruksiRanap tidak boleh kosong")
	private PapInstruksiRanap papInstruksiRanap;
	
	@Column(name = "ObjectPapInstruksiRanapFk", columnDefinition = "CHAR(32)", insertable = false, updatable = false, nullable = false)
	private String papInstruksiRanapId;

	@NotNull(message = "Nama Petugas tidak boleh kosong")
	@Column(name = "namaPetugas")
	@Caption(value = "namaPetugas")
	private String namaPetugas;

	public PapInstruksiRanap getPapInstruksiRanap() {
		return papInstruksiRanap;
	}

	public void setPapInstruksiRanap(PapInstruksiRanap papInstruksiRanap) {
		this.papInstruksiRanap = papInstruksiRanap;
	}

	public String getNamaPetugas() {
		return namaPetugas;
	}

	public void setNamaPetugas(String namaPetugas) {
		this.namaPetugas = namaPetugas;
	}

	public String getPapInstruksiRanapId() {
		return papInstruksiRanapId;
	}

	public void setPapInstruksiRanapId(String papInstruksiRanapId) {
		this.papInstruksiRanapId = papInstruksiRanapId;
	}
	
	
}
