92 lines
2.2 KiB
Java
92 lines
2.2 KiB
Java
package com.jasamedika.medifirst2000.entities;
|
|
|
|
import javax.persistence.Column;
|
|
import javax.persistence.Entity;
|
|
import javax.persistence.JoinColumn;
|
|
import javax.persistence.ManyToOne;
|
|
import javax.persistence.Table;
|
|
import javax.validation.constraints.NotNull;
|
|
|
|
import com.jasamedika.medifirst2000.base.BaseMaster;
|
|
import com.jasamedika.medifirst2000.helper.Caption;
|
|
import javax.persistence.GeneratedValue;
|
|
import javax.persistence.GenerationType;
|
|
import javax.persistence.Id;
|
|
|
|
@Entity
|
|
@Table(name = "MappingBmhpToSetAlat_M")
|
|
public class MappingBmhpToSetAlat extends BaseMaster {
|
|
|
|
@ManyToOne
|
|
@JoinColumn(name = "ObjectBmhpFk")
|
|
@NotNull(message = "Bmhp tidak boleh kosong")
|
|
@Caption(value = "Object Bmhp")
|
|
private Alat 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 BundleSetAlat 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 BundleSetAlat getBundleSetAlat() {
|
|
return bundleSetAlat;
|
|
}
|
|
|
|
public void setBundleSetAlat(BundleSetAlat 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 Alat getBmhp() {
|
|
return bmhp;
|
|
}
|
|
|
|
public void setBmhp(Alat bmhp) {
|
|
this.bmhp = bmhp;
|
|
}
|
|
|
|
@Id
|
|
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "public.mappingbmhptosetalat_m_id_seq")
|
|
@javax.persistence.SequenceGenerator(name = "public.mappingbmhptosetalat_m_id_seq", sequenceName = "public.mappingbmhptosetalat_m_id_seq", allocationSize = 1)
|
|
@Column(name = "id")
|
|
protected Integer id;
|
|
|
|
public Integer getId() {
|
|
|
|
return id;
|
|
}
|
|
|
|
public void setId(Integer id) {
|
|
this.id = id;
|
|
}
|
|
} |