46 lines
1.1 KiB
Java
46 lines
1.1 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 java.util.Date;
|
|
|
|
import static javax.persistence.FetchType.LAZY;
|
|
|
|
@Getter
|
|
@Setter
|
|
@Entity
|
|
@Table(name = "JadwalDpjpRawatInap_T")
|
|
@JsonIgnoreProperties({ "hibernateLazyInitializer", "handler" })
|
|
public class JadwalDpjpRawatInap extends BaseTransaction {
|
|
|
|
@ManyToOne(fetch = LAZY)
|
|
@JoinColumn(name = "ObjectRuanganFk")
|
|
@Caption(value = "Object Ruangan")
|
|
private Ruangan ruangan;
|
|
|
|
@Column(name = "ObjectRuanganFk", insertable = false, updatable = false)
|
|
private Integer ruanganId;
|
|
|
|
@ManyToOne(fetch = LAZY)
|
|
@JoinColumn(name = "ObjectDokterFk")
|
|
@Caption(value = "Object Dokter")
|
|
private Pegawai dokter;
|
|
|
|
@Column(name = "ObjectDokterFk", insertable = false, updatable = false)
|
|
private Integer dokterId;
|
|
|
|
@Column(name = "TglAwal")
|
|
@Caption(value = "Tgl Awal")
|
|
private Date tglAwal;
|
|
|
|
@Column(name = "TglAhir")
|
|
@Caption(value = "Tgl Ahir")
|
|
private Date tglAkhir;
|
|
|
|
}
|