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 MapPegawaiToObjekPajak
 * 
 * @author Generator
 */
//@Entity
//@Table(name = "MapPegawaiToObjekPajak_M")
public class MapPegawaiToObjekPajakVO extends BaseMasterVO {
	@ManyToOne
	@JoinColumn(name = "ObjectObjekPajakFk")
	@NotNull(message="Object Objek PajakVO Harus Diisi")
	@Caption(value="Object Objek Pajak")
	private ObjekPajakVO objekPajak;

	public void setObjekPajak(ObjekPajakVO objekPajak) {
		this.objekPajak = objekPajak;
	}

	@Column(name = "KdObjekPajak", nullable = false )
	public ObjekPajakVO getObjekPajak(){
		return this.objekPajak;
	}

	@Column(name = "ObjectObjekPajakFk", insertable=false,updatable=false)
	private Integer objekPajakId;

	@ManyToOne
	@JoinColumn(name = "ObjectPegawaiFk")
	@NotNull(message="Object PegawaiVO Harus Diisi")
	@Caption(value="Object Pegawai")
	private LoginUserVO pegawai;

	public void setPegawai(LoginUserVO pegawai) {
		this.pegawai = pegawai;
	}

	@Column(name = "KdPegawai", nullable = false , length = 5)
	public LoginUserVO getPegawai(){
		return this.pegawai;
	}

	@Column(name = "ObjectPegawaiFk", insertable=false,updatable=false)
	private Integer pegawaiId;

	@ManyToOne
	@JoinColumn(name = "ObjectRangeFk")
	@NotNull(message="Object RangeVO Harus Diisi")
	@Caption(value="Object Range")
	private RangeVO range;

	public void setRange(RangeVO range) {
		this.range = range;
	}

	@Column(name = "KdRange", nullable = false )
	public RangeVO getRange(){
		return this.range;
	}

	@Column(name = "ObjectRangeFk", insertable=false,updatable=false)
	private Integer rangeId;


}

