57 lines
1.4 KiB
Java
57 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.*;
|
|
|
|
@Getter
|
|
@Setter
|
|
@Entity
|
|
@Table(name = "UnitCostDetail_T")
|
|
public class UnitCostDetail extends BaseTransaction {
|
|
|
|
@ManyToOne
|
|
@JoinColumn(name = "ObjectUnitCostFk")
|
|
@Caption(value = "Object Unit Cost")
|
|
private UnitCost unitCost;
|
|
|
|
@Column(name = "ObjectUnitCostFk", insertable = false, updatable = false)
|
|
private Integer unitCostId;
|
|
|
|
@ManyToOne
|
|
@JoinColumn(name = "ObjectUnitCostDetailJenisFk")
|
|
@Caption(value = "Object Unit Cost Detail Jenis")
|
|
private UnitCostDetailJenis unitCostDetailJenis;
|
|
|
|
@Column(name = "ObjectUnitCostDetailJenisFk", insertable = false, updatable = false)
|
|
private Integer unitCostDetailJenisId;
|
|
|
|
@ManyToOne
|
|
@JoinColumn(name = "ObjectProdukFk")
|
|
@Caption(value = "Produk Unit Cost")
|
|
private Produk produk;
|
|
|
|
@Column(name = "ObjectProdukFk", insertable = false, updatable = false)
|
|
private Integer produkId;
|
|
|
|
@ManyToOne
|
|
@JoinColumn(name = "ObjectSatuanStandarFk")
|
|
@Caption(value = "Object Satuan Standar")
|
|
private SatuanStandar satuanStandar;
|
|
|
|
@Column(name = "ObjectSatuanStandarFk", insertable = false, updatable = false)
|
|
private Integer satuanStandarId;
|
|
|
|
@Column(name = "Qty")
|
|
@Caption(value = "Qty")
|
|
private Integer qty;
|
|
|
|
@Column(name = "harga")
|
|
@Caption(value = "Harga")
|
|
private Double harga;
|
|
|
|
}
|