45 lines
1.4 KiB
Java
45 lines
1.4 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 = "IpsrsPelaksanaanPerbaikanSukuCadang_T")
|
|
@JsonIgnoreProperties({ "hibernateLazyInitializer", "handler" })
|
|
public class IpsrsPelaksanaanPerbaikanSukuCadang extends BaseTransaction {
|
|
|
|
@ManyToOne(fetch = LAZY)
|
|
@Caption(value = "Ipsrs Pelaksanaan Perbaikan")
|
|
@JoinColumn(name = "ObjectIpsrsPelaksanaanPerbaikanFk")
|
|
private IpsrsPelaksanaanPerbaikan ipsrsPelaksanaanPerbaikan;
|
|
|
|
@Column(name = "ObjectIpsrsPelaksanaanPerbaikanFk", columnDefinition = "CHAR(32)", insertable = false, updatable = false)
|
|
private String ipsrsPelaksanaanPerbaikanId;
|
|
|
|
@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 = "ObjectTujuanRuanganFk", insertable = false, updatable = false)
|
|
private Integer tujuanRuanganId;
|
|
|
|
}
|