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 MapRuanganToProduk
 * 
 * @author Generator
 */
//@Entity
//@Table(name = "MapRuanganToProduk_M")
public class MapRuanganToProdukVO extends BaseMasterVO {
	@ManyToOne
	@JoinColumn(name = "ObjectProdukFk")
	@NotNull(message="Object ProdukVO Harus Diisi")
	@Caption(value="Object Produk")
	private ProdukVO produk;

	public void setProduk(ProdukVO produk) {
		this.produk = produk;
	}

	@Column(name = "KdProduk", nullable = false , length = 6)
	public ProdukVO getProduk(){
		return this.produk;
	}

	@Column(name = "ObjectProdukFk", insertable=false,updatable=false)
	private Integer produkId;

	@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;

	@Caption(value="Status")
	private String status;

	public void setStatus(String status) {
		this.status = status;
	}

	@Column(name = "Status", nullable = false , length = 2)
	public String getStatus(){
		return this.status;
	}


}

