package com.jasamedika.medifirst2000.vo;

import java.io.Serializable;
import javax.persistence.*;
import java.util.Date;
import org.hibernate.validator.constraints.NotEmpty;

import com.jasamedika.medifirst2000.base.vo.BaseMasterVO;
import javax.validation.constraints.NotNull;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.internal.util.logging.Messages;

import com.fasterxml.jackson.annotation.JsonManagedReference;
import com.jasamedika.medifirst2000.base.vo.BaseMasterVO;
import com.jasamedika.medifirst2000.helper.Caption;

/**
 *  class MapJenisPetugasPToJenisPegawai
 * 
 * @author Generator
 */
//@Entity
//@Table(name = "MapJenisPetugasPToJenisPegawai_M")
public class MapJenisPetugasPToJenisPegawaiVO extends BaseMasterVO {
	@ManyToOne
	@JoinColumn(name = "ObjectJenisPegawaiFk")
	@NotNull(message="Object Jenis PegawaiVO Harus Diisi")
	@Caption(value="Object Jenis Pegawai")
	private JenisPegawaiVO jenisPegawai;

	public void setJenisPegawai(JenisPegawaiVO jenisPegawai) {
		this.jenisPegawai = jenisPegawai;
	}

	@Column(name = "KdJenisPegawai", nullable = false )
	public JenisPegawaiVO getJenisPegawai(){
		return this.jenisPegawai;
	}

	@Column(name = "ObjectJenisPegawaiFk", insertable=false,updatable=false)
	private Integer jenisPegawaiId;

	@ManyToOne
	@JoinColumn(name = "ObjectJenisPetugasPeFk")
	@NotNull(message="Object Jenis Petugas Pe Harus Diisi")
	@Caption(value="Object Jenis Petugas Pe")
	private JenisPetugasPelaksanaVO jenisPetugasPe;

	public void setJenisPetugasPe(JenisPetugasPelaksanaVO jenisPetugasPe) {
		this.jenisPetugasPe = jenisPetugasPe;
	}

	@Column(name = "KdJenisPetugasPe", nullable = false )
	public JenisPetugasPelaksanaVO getJenisPetugasPe(){
		return this.jenisPetugasPe;
	}

	@Column(name = "ObjectJenisPetugasPeFk", insertable=false,updatable=false)
	private Integer jenisPetugasPeId;


}

