84 lines
2.2 KiB
Java
84 lines
2.2 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 java.util.Date;
|
|
|
|
@Getter
|
|
@Setter
|
|
@Entity
|
|
@Table(name = "KirimBarang_T")
|
|
public class KirimBarang extends BaseTransaction {
|
|
|
|
private static final long serialVersionUID = 4583936895020107430L;
|
|
|
|
@ManyToOne
|
|
@JoinColumn(name = "ObjectPermintaanBarangDariRuanganFk")
|
|
@Caption(value = "Object Permintaan Barang Dari Ruangan")
|
|
private PermintaanBarangDariRuangan permintaanBarangDariRuangan;
|
|
|
|
@Column(name = "ObjectPermintaanBarangDariRuanganFk", columnDefinition = "CHAR(32)", insertable = false, updatable = false)
|
|
private String permintaanBarangDariRuanganId;
|
|
|
|
@ManyToOne
|
|
@JoinColumn(name = "ObjectRuanganFk")
|
|
@Caption(value = "Object Ruangan")
|
|
private Ruangan ruangan;
|
|
|
|
@Column(name = "ObjectRuanganFk", insertable = false, updatable = false)
|
|
private Integer ruanganId;
|
|
|
|
@ManyToOne
|
|
@JoinColumn(name = "ObjectLoginUserFk")
|
|
@Caption(value = "Object Login User")
|
|
private LoginUser namaPemesan;
|
|
|
|
@Column(name = "ObjectLoginUserFk", insertable = false, updatable = false)
|
|
private Integer namaPemesanId;
|
|
|
|
@Column(name = "TglKirim", nullable = false)
|
|
@Caption(value = "Tgl Kirim")
|
|
private Date tglKirim;
|
|
|
|
@Column(name = "KodeBarang", nullable = false)
|
|
@Caption(value = "Kode Barang")
|
|
private String kodeBarang;
|
|
|
|
@Column(name = "SumberDana", nullable = false)
|
|
@Caption(value = "Sumber Dana")
|
|
private String sumberDana;
|
|
|
|
@Column(name = "HargaSatuan", nullable = false)
|
|
@Caption(value = "Harga Satuan")
|
|
private Double hargaSatuan;
|
|
|
|
@Column(name = "Kirim", nullable = false)
|
|
@Caption(value = "Kirim")
|
|
private Integer kirim;
|
|
|
|
@Column(name = "TotalHarga", nullable = false)
|
|
@Caption(value = "Total Harga")
|
|
private Double totalHarga;
|
|
|
|
@Column(name = "NamaBarang", nullable = false)
|
|
@Caption(value = "Nama Harga")
|
|
private String namaBarang;
|
|
|
|
@Column(name = "Stok", nullable = false)
|
|
@Caption(value = "Stok")
|
|
private Integer stok;
|
|
|
|
@Column(name = "NoOrder", nullable = false)
|
|
@Caption(value = "No Order")
|
|
private String noOrder;
|
|
|
|
@Column(name = "TglOrder", nullable = false)
|
|
@Caption(value = "Tgl Order")
|
|
private Date tglOrder;
|
|
|
|
}
|