72 lines
2.1 KiB
Java
72 lines
2.1 KiB
Java
package com.jasamedika.medifirst2000.entities;
|
|
|
|
import com.fasterxml.jackson.annotation.JsonIgnore;
|
|
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
|
import com.jasamedika.medifirst2000.base.BaseMaster;
|
|
import lombok.Getter;
|
|
import lombok.Setter;
|
|
|
|
import javax.persistence.*;
|
|
import java.util.Date;
|
|
|
|
import static javax.persistence.CascadeType.ALL;
|
|
import static javax.persistence.CascadeType.MERGE;
|
|
import static javax.persistence.FetchType.LAZY;
|
|
import static javax.persistence.GenerationType.SEQUENCE;
|
|
import static javax.persistence.TemporalType.DATE;
|
|
|
|
@Getter
|
|
@Setter
|
|
@Entity
|
|
@Table(name = "NotifMessagingScheduler_S")
|
|
@JsonIgnoreProperties({ "hibernateLazyInitializer", "handler" })
|
|
public class NotifMessagingScheduler extends BaseMaster {
|
|
|
|
private static final long serialVersionUID = -3097911644440148472L;
|
|
|
|
@Id
|
|
@GeneratedValue(strategy = SEQUENCE, generator = "public.notifikasi_modul_message_s_id_seq")
|
|
@SequenceGenerator(name = "public.notifikasi_modul_message_s_id_seq", sequenceName = "public.notifikasi_modul_message_s_id_seq", allocationSize = 1)
|
|
@Column(name = "id")
|
|
private Integer id;
|
|
|
|
@Column(name = "TglKirim")
|
|
@Temporal(DATE)
|
|
private Date tglKirim;
|
|
|
|
private boolean terkirim;
|
|
|
|
@Column(name = "NotifMessagingId")
|
|
private Integer notifMessagingId;
|
|
|
|
@ManyToOne(fetch = LAZY, cascade = ALL)
|
|
@JoinColumn(name = "notifMessagingId", insertable = false, updatable = false)
|
|
@JsonIgnore
|
|
private NotifMessaging notifMessaging;
|
|
|
|
@Column(name = "RuanganIdAsal")
|
|
private Integer ruanganIdAsal;
|
|
|
|
@ManyToOne(fetch = LAZY, cascade = MERGE)
|
|
@JoinColumn(name = "ruanganIdAsal", insertable = false, updatable = false)
|
|
@JsonIgnore
|
|
private Ruangan ruanganAsal;
|
|
|
|
@Column(name = "RuanganIdTujuan")
|
|
private Integer ruanganIdTujuan;
|
|
|
|
@ManyToOne(fetch = LAZY, cascade = MERGE)
|
|
@JoinColumn(name = "ruanganIdTujuan", insertable = false, updatable = false)
|
|
@JsonIgnore
|
|
private Ruangan ruanganTujuan;
|
|
|
|
@Column(name = "PegawaiId")
|
|
private Integer pegawaiId;
|
|
|
|
@ManyToOne(fetch = LAZY, cascade = MERGE)
|
|
@JoinColumn(name = "pegawaiId", insertable = false, updatable = false)
|
|
@JsonIgnore
|
|
private Pegawai pegawai;
|
|
|
|
}
|