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 MapRuanganToDetailJenisProduk
 * 
 * @author Generator
 */
//@Entity
//@Table(name = "MapRuanganToDetailJenisProduk_M")
public class MapRuanganToDetailJenisProdukVO extends BaseMasterVO {
	@ManyToOne
	@JoinColumn(name = "ObjectDetailJenisProdukFk")
	@NotNull(message="Object Detail Jenis ProdukVO Harus Diisi")
	@Caption(value="Object Detail Jenis Produk")
	private DetailJenisProdukVO detailJenisProduk;

	public void setDetailJenisProduk(DetailJenisProdukVO detailJenisProduk) {
		this.detailJenisProduk = detailJenisProduk;
	}

	@Column(name = "KdDetailJenisProduk", nullable = false , length = 4)
	public DetailJenisProdukVO getDetailJenisProduk(){
		return this.detailJenisProduk;
	}

	@Column(name = "ObjectDetailJenisProdukFk", insertable=false,updatable=false)
	private Integer detailJenisProdukId;

	@ManyToOne
	@JoinColumn(name = "ObjectRuanganFk")
	@NotNull(message="Object RuanganVO Harus Diisi")
	@Caption(value="Object Ruangan")
	private RuanganVO ruangan;

	public void setRuangan(RuanganVO ruangan) {
		this.ruangan = ruangan;
	}

	@Column(name = "KdRuangan", nullable = false , length = 3)
	public RuanganVO getRuangan(){
		return this.ruangan;
	}

	@Column(name = "ObjectRuanganFk", insertable=false,updatable=false)
	private Integer ruanganId;


}

