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 MapAccountToProdukPelayanan
 * 
 * @author Generator
 */
//@Entity
//@Table(name = "MapAccountToProdukPelayanan_M")
public class MapAccountToProdukPelayananVO extends BaseMasterVO {
	@ManyToOne
	@JoinColumn(name = "ObjectAccountFk")
	@NotNull(message="Object Account Harus Diisi")
	@Caption(value="Object Account")
	private ChartOfAccountVO account;

	public void setAccount(ChartOfAccountVO account) {
		this.account = account;
	}

	@Column(name = "KdAccount", nullable = false )
	public ChartOfAccountVO getAccount(){
		return this.account;
	}

	@Column(name = "ObjectAccountFk", insertable=false,updatable=false)
	private Integer accountId;

	@ManyToOne
	@JoinColumn(name = "ObjectKomponenHargaFk")
	@NotNull(message="Object Komponen Harga Harus Diisi")
	@Caption(value="Object Komponen Harga")
	private KomponenHargaVO komponenHarga;

	public void setKomponenHarga(KomponenHargaVO komponenHarga) {
		this.komponenHarga = komponenHarga;
	}

	@Column(name = "KdKomponenHarga", nullable = false )
	public KomponenHargaVO getKomponenHarga(){
		return this.komponenHarga;
	}

	@Column(name = "ObjectKomponenHargaFk", insertable=false,updatable=false)
	private Integer komponenHargaId;

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


}

