Update SlipGaji.java
fetch lazy pegawai di entitiy slip gaji
This commit is contained in:
parent
100650f1f5
commit
85399e7ee6
@ -5,6 +5,7 @@ import java.util.Date;
|
||||
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.FetchType;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.JoinColumn;
|
||||
@ -34,7 +35,7 @@ public class SlipGaji implements Serializable {
|
||||
@Caption(value = "ID")
|
||||
protected String id;
|
||||
|
||||
@ManyToOne
|
||||
@ManyToOne(fetch = FetchType.LAZY)
|
||||
@NotNull(message = "Pegawai tidak boleh kosong")
|
||||
@JoinColumn(name = "pegawaifk", nullable = false)
|
||||
@Caption(value = "Pegawai")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user