48 lines
1.5 KiB
Java
48 lines
1.5 KiB
Java
package com.jasamedika.medifirst2000.entities;
|
|
|
|
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
|
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 = "ItPelaksanaanPerbaikanSukuCadang_T")
|
|
@JsonIgnoreProperties({ "hibernateLazyInitializer", "handler" })
|
|
public class ItPelaksanaanPerbaikanSukuCadang extends BaseTransaction {
|
|
|
|
@ManyToOne(fetch = LAZY)
|
|
@Caption(value = "It Pelaksanaan Perbaikan")
|
|
@JoinColumn(name = "ObjectItPelaksanaanPerbaikanFk")
|
|
private ItPelaksanaanPerbaikan itPelaksanaanPerbaikan;
|
|
|
|
@Column(name = "ObjectItPelaksanaanPerbaikanFk", columnDefinition = "CHAR(32)", insertable = false, updatable = false)
|
|
private String itPelaksanaanPerbaikanId;
|
|
|
|
@ManyToOne(fetch = LAZY)
|
|
@Caption(value = "Stok Produk Global")
|
|
@JoinColumn(name = "ObjectStokProdukGlobalFk")
|
|
private StokProdukGlobal stokProdukGlobal;
|
|
|
|
@Column(name = "ObjectStokProdukGlobalFk", insertable = false, updatable = false)
|
|
private Integer stokProdukGlobalId;
|
|
|
|
@ManyToOne(fetch = LAZY)
|
|
@Caption(value = "Tujuan Ruangan")
|
|
@JoinColumn(name = "ObjectTujuanRuanganFk")
|
|
private Ruangan tujuanRuangan;
|
|
|
|
@Column(name = "Qty")
|
|
private Integer qty;
|
|
|
|
@Column(name = "ObjectTujuanRuanganFk", insertable = false, updatable = false)
|
|
private Integer tujuanRuanganId;
|
|
|
|
}
|