Clean code
Persiapan service duplikat mapping petugas pelayanan untuk data pegawai sebagai relasi pelayanan pasien saat split jumlah pelayanan
This commit is contained in:
parent
54f6f9543d
commit
a9624ed220
@ -1,8 +1,9 @@
|
||||
package com.jasamedika.medifirst2000.entities;
|
||||
|
||||
import static javax.persistence.FetchType.LAZY;
|
||||
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.FetchType;
|
||||
import javax.persistence.JoinColumn;
|
||||
import javax.persistence.ManyToOne;
|
||||
import javax.persistence.Table;
|
||||
@ -20,7 +21,7 @@ import lombok.Setter;
|
||||
public class MapPelayananPasienPetugasToPegawai extends BaseTransaction {
|
||||
private static final long serialVersionUID = 1834075212973600413L;
|
||||
|
||||
@ManyToOne(fetch = FetchType.LAZY)
|
||||
@ManyToOne(fetch = LAZY)
|
||||
@JoinColumn(name = "ObjectPelayananPasienPetugasFk")
|
||||
@Caption(value = "Object Pelayanan Pasien Petugas")
|
||||
private PelayananPasienPetugas pelayananPasienPetugas;
|
||||
@ -28,7 +29,7 @@ public class MapPelayananPasienPetugasToPegawai extends BaseTransaction {
|
||||
@Column(name = "ObjectPelayananPasienPetugasFk", insertable = false, updatable = false)
|
||||
private String pelayananPasienPetugasId;
|
||||
|
||||
@ManyToOne(fetch = FetchType.LAZY)
|
||||
@ManyToOne(fetch = LAZY)
|
||||
@JoinColumn(name = "ObjectPegawaiFk")
|
||||
@Caption(value = "Object Pegawai")
|
||||
private Pegawai pegawai;
|
||||
|
||||
@ -1,8 +1,5 @@
|
||||
package com.jasamedika.medifirst2000.vo;
|
||||
|
||||
import javax.persistence.FetchType;
|
||||
import javax.persistence.ManyToOne;
|
||||
|
||||
import com.jasamedika.medifirst2000.base.vo.BaseTransactionVO;
|
||||
import com.jasamedika.medifirst2000.helper.Caption;
|
||||
|
||||
@ -13,11 +10,9 @@ import lombok.Setter;
|
||||
@Setter
|
||||
public class MapPelayananPasienPetugasToPegawaiVO extends BaseTransactionVO{
|
||||
|
||||
@ManyToOne(fetch=FetchType.LAZY)
|
||||
@Caption(value="Object Pelayanan Pasien Petugas")
|
||||
private PelayananPasienPetugasVO pelayananPasienPetugas;
|
||||
|
||||
@ManyToOne(fetch=FetchType.LAZY)
|
||||
@Caption(value="Object Pegawai")
|
||||
private PegawaiVO pegawai;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user