Update JenisLog.java

This commit is contained in:
Salman Manoe 2024-02-02 13:57:59 +07:00
parent 28e45f1f65
commit 36e24d88b0
2 changed files with 7 additions and 2 deletions

View File

@ -26,11 +26,11 @@ public class JenisLog extends BaseActive implements Serializable {
@Id
@GeneratedValue(strategy = SEQUENCE, generator = "sg_jenis_log_m")
@SequenceGenerator(name = "sg_jenis_log_m", sequenceName = "rm_jenis_log_m_seq", allocationSize = 1)
@SequenceGenerator(name = "sg_jenis_log_m", sequenceName = "jenis_log_m_seq", allocationSize = 1)
@Column(name = "id")
protected Long id;
@Column(length = 150, nullable = false)
@Column(length = 150, unique = true, nullable = false)
@Size(max = 150)
@NotBlank
@Caption("Jenis Log")

View File

@ -52,4 +52,9 @@ public class UserLogging extends BaseMaster {
@Column(name = "keterangan", length = 200)
@Caption(value = "Keterangan")
private String keterangan;
@ManyToOne(fetch = LAZY)
@JoinColumn(name = "jenislogfk")
@Caption(value = "Jenis Log FK")
private JenisLog jenisLogFk;
}