77 lines
1.8 KiB
Java
77 lines
1.8 KiB
Java
package com.jasamedika.medifirst2000.vo;
|
|
|
|
import javax.persistence.Column;
|
|
import javax.persistence.JoinColumn;
|
|
import javax.persistence.ManyToOne;
|
|
import javax.validation.constraints.NotNull;
|
|
|
|
import com.jasamedika.medifirst2000.base.vo.BaseMasterVO;
|
|
import com.jasamedika.medifirst2000.entities.Alat;
|
|
import com.jasamedika.medifirst2000.entities.BundleSetAlat;
|
|
import com.jasamedika.medifirst2000.entities.Produk;
|
|
import com.jasamedika.medifirst2000.helper.Caption;
|
|
|
|
public class MappingBmhpToSetAlatVO extends BaseMasterVO {
|
|
|
|
@ManyToOne
|
|
@JoinColumn(name = "ObjectBmhpFk")
|
|
@NotNull(message = "Bmhp tidak boleh kosong")
|
|
@Caption(value="Object Bmhp")
|
|
private AlatVO bmhp;
|
|
|
|
@Column(name = "ObjectBmhpFk", insertable = false, updatable = false, nullable = false)
|
|
private Integer alatId;
|
|
|
|
@ManyToOne
|
|
@JoinColumn(name = "ObjectBundleSetAlatFk")
|
|
@NotNull(message = "Bundle Set Alat tidak boleh kosong")
|
|
@Caption(value="Object Bundle Set Alat")
|
|
private BundleSetAlatVO bundleSetAlat;
|
|
|
|
@Column(name = "ObjectBundleSetAlatFk", insertable = false, updatable = false, nullable = false)
|
|
private Integer bundleSetAlatId;
|
|
|
|
@Column(name = "Jumlah", nullable = true)
|
|
@Caption(value = "Jumlah")
|
|
private String jumlah;
|
|
|
|
@Column(name = "Satuan", nullable = true)
|
|
@Caption(value = "Satuan")
|
|
private String satuan;
|
|
|
|
public BundleSetAlatVO getBundleSetAlat() {
|
|
return bundleSetAlat;
|
|
}
|
|
|
|
public void setBundleSetAlat(BundleSetAlatVO bundleSetAlat) {
|
|
this.bundleSetAlat = bundleSetAlat;
|
|
}
|
|
|
|
public String getJumlah() {
|
|
return jumlah;
|
|
}
|
|
|
|
public void setJumlah(String jumlah) {
|
|
this.jumlah = jumlah;
|
|
}
|
|
|
|
public String getSatuan() {
|
|
return satuan;
|
|
}
|
|
|
|
public void setSatuan(String satuan) {
|
|
this.satuan = satuan;
|
|
}
|
|
|
|
public AlatVO getBmhp() {
|
|
return bmhp;
|
|
}
|
|
|
|
public void setBmhp(AlatVO bmhp) {
|
|
this.bmhp = bmhp;
|
|
}
|
|
|
|
|
|
|
|
}
|