68 lines
1.9 KiB
Java
68 lines
1.9 KiB
Java
package com.jasamedika.medifirst2000.entities;
|
|
|
|
import com.jasamedika.medifirst2000.base.BaseTransaction;
|
|
import com.jasamedika.medifirst2000.helper.Caption;
|
|
import lombok.Getter;
|
|
import lombok.Setter;
|
|
|
|
import javax.persistence.*;
|
|
import java.util.HashSet;
|
|
import java.util.Set;
|
|
|
|
import static javax.persistence.CascadeType.ALL;
|
|
import static javax.persistence.FetchType.LAZY;
|
|
|
|
@Getter
|
|
@Setter
|
|
@Entity
|
|
@Table(name = "PerencanaanAnestesi_T")
|
|
public class PerencanaanAnestesi extends BaseTransaction {
|
|
|
|
@Column(name = "Catatan")
|
|
@Caption(value = "Catatan")
|
|
private String catatan;
|
|
|
|
@ManyToOne
|
|
@JoinColumn(name = "ObjectPraAnestesiDokterFk")
|
|
@Caption(value = "PraAnestesiDokter")
|
|
private PraAnestesiDokter praAnestesiDokter;
|
|
|
|
@Column(name = "ObjectPraAnestesiDokterFk", insertable = false, updatable = false)
|
|
private String praAnestesiDokterId;
|
|
|
|
@Column(name = "RawatInap")
|
|
@Caption(value = "RawatInap")
|
|
private String rawatInap;
|
|
|
|
@Column(name = "RawatJalan")
|
|
@Caption(value = "RawatJalan")
|
|
private String rawatJalan;
|
|
|
|
@Column(name = "Sedasi")
|
|
@Caption(value = "Sedasi")
|
|
private String sedasi;
|
|
|
|
@Column(name = "GA")
|
|
@Caption(value = "GA")
|
|
private String ga;
|
|
|
|
@OneToMany(cascade = ALL, fetch = LAZY, mappedBy = "perencanaanAnestesi")
|
|
private Set<Monitoring> monitoring = new HashSet<>();
|
|
|
|
@OneToMany(cascade = ALL, fetch = LAZY, mappedBy = "perencanaanAnestesi")
|
|
private Set<TeknikKhusus> teknikKhusus = new HashSet<>();
|
|
|
|
@OneToMany(cascade = ALL, fetch = LAZY, mappedBy = "perencanaanAnestesi")
|
|
private Set<AlatKhusus> alatKhusus = new HashSet<>();
|
|
|
|
@OneToMany(cascade = ALL, fetch = LAZY, mappedBy = "perencanaanAnestesi")
|
|
private Set<RawatKhusus> rawatKhusus = new HashSet<>();
|
|
|
|
@OneToMany(cascade = ALL, fetch = LAZY, mappedBy = "perencanaanAnestesi")
|
|
private Set<PersiapanPraAnestesi> persiapanPraAnestesi = new HashSet<>();
|
|
|
|
@OneToMany(cascade = ALL, fetch = LAZY, mappedBy = "perencanaanAnestesi")
|
|
private Set<Regional> regional = new HashSet<>();
|
|
|
|
}
|