63 lines
1.6 KiB
Java
63 lines
1.6 KiB
Java
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 java.util.Date;
|
|
|
|
import static javax.persistence.FetchType.LAZY;
|
|
import static javax.persistence.GenerationType.SEQUENCE;
|
|
|
|
@Getter
|
|
@Setter
|
|
@Entity
|
|
@Table(name = "SettingPirSdm_M")
|
|
public class SettingPirSdm extends BaseMaster {
|
|
|
|
@Column(name = "TglAwal")
|
|
@Caption(value = "tgl Awal")
|
|
private Date tglAwal;
|
|
|
|
@Column(name = "TglAkhir")
|
|
@Caption(value = "tgl Akhir")
|
|
private Date tglAkhir;
|
|
|
|
@Column(name = "Pir")
|
|
@Caption(value = "Pir")
|
|
private Double pir;
|
|
|
|
@Column(name = "Iku")
|
|
@Caption(value = "Iku")
|
|
private Double iku;
|
|
|
|
@Column(name = "TglBerlaku")
|
|
@Caption(value = "tglBerlaku")
|
|
private Date tglBerlaku;
|
|
|
|
@ManyToOne(fetch = LAZY)
|
|
@JoinColumn(name = "ObjectSuratKeputusanFk")
|
|
@Caption(value = "Object Surat Keputusan")
|
|
private SuratKeputusan suratKeputusan;
|
|
|
|
@ManyToOne(fetch = LAZY)
|
|
@JoinColumn(name = "objectUnitKerjaPegawaifk")
|
|
@Caption(value = "Object UnitKerjaPegawai ")
|
|
private UnitKerjaPegawai unitKerja;
|
|
|
|
@Column(name = "objectUnitKerjaPegawaifk", insertable = false, updatable = false)
|
|
private Integer unitKerjaId;
|
|
|
|
@Column(name = "ObjectSuratKeputusanFk", insertable = false, updatable = false)
|
|
private Integer suratKeputusanId;
|
|
|
|
@Id
|
|
@GeneratedValue(strategy = SEQUENCE, generator = "public.SettingPirSdm_M_id_seq")
|
|
@SequenceGenerator(name = "public.SettingPirSdm_M_id_seq", sequenceName = "public.SettingPirSdm_M_id_seq", allocationSize = 1)
|
|
@Column(name = "id")
|
|
protected Integer id;
|
|
|
|
}
|