49 lines
1.4 KiB
Java
49 lines
1.4 KiB
Java
package com.jasamedika.medifirst2000.entities;
|
|
|
|
import com.jasamedika.medifirst2000.base.BaseTransaction;
|
|
import com.jasamedika.medifirst2000.helper.Caption;
|
|
import lombok.Getter;
|
|
import lombok.Setter;
|
|
|
|
import javax.persistence.*;
|
|
import javax.validation.constraints.NotNull;
|
|
|
|
@Getter
|
|
@Setter
|
|
@Entity
|
|
@Table(name = "SterilisasiAlat_T")
|
|
public class SterilisasiAlat extends BaseTransaction {
|
|
|
|
@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")
|
|
@Caption(value = "Jumlah")
|
|
private Integer jumlah;
|
|
|
|
@ManyToOne
|
|
@JoinColumn(name = "ObjectSatuanStandarFk")
|
|
@NotNull(message = "Satuan standar tidak boleh kosong")
|
|
@Caption(value = "Object Satuan Standar")
|
|
private SatuanStandar satuanStandar;
|
|
|
|
@Column(name = "ObjectSatuanStandarFk", insertable = false, updatable = false, nullable = false)
|
|
private Integer satuanStandarId;
|
|
|
|
@ManyToOne
|
|
@JoinColumn(name = "ObjectRuanganFk")
|
|
@NotNull(message = "Ruangan tidak boleh kosong")
|
|
@Caption(value = "Object Ruangan")
|
|
private Ruangan ruangan;
|
|
|
|
@Column(name = "ObjectRuanganFk", insertable = false, updatable = false, nullable = false)
|
|
private Integer ruanganId;
|
|
|
|
}
|