82 lines
2.1 KiB
Java
82 lines
2.1 KiB
Java
package com.jasamedika.medifirst2000.entities;
|
|
|
|
import com.jasamedika.medifirst2000.base.BaseActive;
|
|
import com.jasamedika.medifirst2000.helper.Caption;
|
|
import lombok.Getter;
|
|
import lombok.Setter;
|
|
import org.hibernate.annotations.GenericGenerator;
|
|
|
|
import javax.persistence.*;
|
|
import javax.validation.constraints.NotNull;
|
|
import java.math.BigDecimal;
|
|
import java.util.Set;
|
|
|
|
import static javax.persistence.CascadeType.ALL;
|
|
import static javax.persistence.FetchType.LAZY;
|
|
|
|
@Getter
|
|
@Setter
|
|
@Entity
|
|
@Table(name = "t_logbook_dokter", schema = "remun")
|
|
public class LogbookDokter extends BaseActive {
|
|
|
|
@Id
|
|
@GeneratedValue(generator = "uuid")
|
|
@GenericGenerator(name = "uuid", strategy = "uuid")
|
|
@Column(name = "no_rec", columnDefinition = "CHAR(32)", unique = true)
|
|
protected String noRec;
|
|
|
|
@Column(name = "jenis_logbook")
|
|
@Caption(value = "Jenis Logbook")
|
|
private String jenisLogbook;
|
|
|
|
@Column(name = "produk_id")
|
|
@Caption(value = "Id Produk")
|
|
private Integer produkId;
|
|
|
|
@Column(name = "produk")
|
|
@Caption(value = "Produk")
|
|
private String produk;
|
|
|
|
@Column(name = "jenis_ruangan")
|
|
@Caption(value = "Jenis Ruangan")
|
|
private String jenisRuangan;
|
|
|
|
@Column(name = "kelompok_pasien")
|
|
@Caption(value = "Kelompok Pasien")
|
|
private String kelompokPasien;
|
|
|
|
@Column(name = "tarif")
|
|
@Caption(value = "Tarif")
|
|
private BigDecimal tarif;
|
|
|
|
@Column(name = "persen_jasa")
|
|
@Caption(value = "Persentase Jasa")
|
|
private Double persenJasa;
|
|
|
|
@Column(name = "remun_tindakan")
|
|
@Caption(value = "Remun / Tindakan")
|
|
private BigDecimal remunTindakan;
|
|
|
|
@Column(name = "keterangan")
|
|
@Caption(value = "Keterangan")
|
|
private String keterangan;
|
|
|
|
@Column(name = "total_tindakan")
|
|
@Caption(value = "Total Tindakan")
|
|
private Integer totalTindakan;
|
|
|
|
@Column(name = "total_remun_tindakan")
|
|
@Caption(value = "Total Remunerasi")
|
|
private BigDecimal totalRemunTindakan;
|
|
|
|
@ManyToOne(fetch = LAZY)
|
|
@JoinColumn(name = "logbook_remun_id")
|
|
@NotNull(message = "Logbook remun tidak boleh kosong")
|
|
@Caption(value = "Logbook Remun")
|
|
private LogbookRemun logbookRemun;
|
|
|
|
@OneToMany(cascade = ALL, fetch = LAZY, mappedBy = "logbookDokter")
|
|
private Set<DetailLogbookDokter> detailLogbookDokter;
|
|
}
|