package com.jasamedika.medifirst2000.entities; import com.jasamedika.medifirst2000.base.BaseMaster; import com.jasamedika.medifirst2000.helper.Caption; import lombok.Getter; import lombok.Setter; import javax.persistence.*; import static javax.persistence.GenerationType.SEQUENCE; /** * class PegawaiSKAsuransi * * @author Generator */ @Getter @Setter @Entity @Table(name = "PegawaiSKAsuransi_M") public class PegawaiSKAsuransi extends BaseMaster { @ManyToOne @JoinColumn(name = "NoSKFk") @Caption(value = "No S K") private SuratKeputusan noSK; @Column(name = "NoSKFk", insertable = false, updatable = false, nullable = false) private Integer noSKId; @ManyToOne @JoinColumn(name = "RekananPenjaminFk") @Caption(value = "Rekanan Penjamin") private Rekanan rekanan; @Column(name = "RekananPenjaminFk", insertable = false, updatable = false, nullable = false) private Integer rekananId; @ManyToOne @JoinColumn(name = "KomponenHargaFk") @Caption(value = "Komponen Harga") private KomponenHarga komponenHarga; @Column(name = "KomponenHargaFk", insertable = false, updatable = false, nullable = false) private Integer komponenHargaId; @Column(name = "HargaSatuanPremi") @Caption(value = "Harga Satuan Premi") private Double hargaSatuanPremi; @Column(name = "PersenHargaSatuanPremi") @Caption(value = "Persen Harga Satuan Premi") private Double persenHargaSatuanPremi; @Column(name = "FactorRate", nullable = false) @Caption(value = "Factor Rate") private Double factorRate; @Column(name = "OperatorFactorRate", nullable = false) @Caption(value = "Operator Factor Rate") private String operatorFactorRate; @Column(name = "TotalFactorRatePremi") @Caption(value = "Total Factor Rate Premi") private Double totalFactorRatePremi; @Column(name = "IsByMonth", nullable = false) @Caption(value = "Is By Month") private Byte isByMonth; @Column(name = "IsByYear", nullable = false) @Caption(value = "Is By Year") private Byte isByYear; @Column(name = "KeteranganLainnya") @Caption(value = "Keterangan Lainnya") private String keteranganLainnya; @Id @GeneratedValue(strategy = SEQUENCE, generator = "public.pegawaiskasuransi_m_id_seq") @SequenceGenerator(name = "public.pegawaiskasuransi_m_id_seq", sequenceName = "public.pegawaiskasuransi_m_id_seq", allocationSize = 1) @Column(name = "id") protected Integer id; }