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 static javax.persistence.FetchType.LAZY; @Getter @Setter @Entity @Table(name = "RacikanDetail_T") public class RacikanDetail extends BaseTransaction { private static final long serialVersionUID = -1028349501971182390L; @Caption(value = "Harga Satuan") @Column(name = "hargaSatuan") private Double hargaSatuan; @Caption(value = "Harga Jual") @Column(name = "HargaJual") private Double hargaJual; @ManyToOne(fetch = LAZY) @JoinColumn(name = "Generik") @Caption(value = "Generik") private Generik generik; @Column(name = "Generik", insertable = false, updatable = false) private Integer generikId; @Caption(value = "statusOrder") @Column(name = "statusOrder") private Byte statusOrder; @Caption(value = "Jenis Racikan") @Column(name = "jenisRacikan", length = 10) private String jenisRacikan; @Caption(value = "Total Miligram") @Column(name = "totalMgMl", length = 10) private Double totalMgMl; @Caption(value = "Total Kekuatan") @Column(name = "jumlahKekuatan", length = 10) private Double jumlahKekuatan; @Caption(value = "Total Table") @Column(name = "jumlahTablet", length = 10) private Double jumlahTablet; @Caption(value = "Total") @Column(name = "total", length = 10) private Double total; @ManyToOne(fetch = LAZY) @JoinColumn(name = "ProdukFk") @Caption(value = "Produk") private Produk produk; @Column(name = "ProdukFk", insertable = false, updatable = false) private Integer kdProduk; @ManyToOne(fetch = LAZY) @JoinColumn(name = "StrukRacikanFk") @Caption(value = "No Racikan") private StrukRacikan strukRacikan; @Column(name = "StrukRacikanFk", insertable = false, updatable = false) private String noRacikan; @ManyToOne(fetch = LAZY) @JoinColumn(name = "PelayananPasienFk") @Caption(value = "Pelayanan Pasien") private PelayananPasien pelayananPasien; @Column(name = "PelayananPasienFk", insertable = false, updatable = false) private String pelayananPasienId; }