103 lines
2.7 KiB
Java
103 lines
2.7 KiB
Java
package com.jasamedika.medifirst2000.entities;
|
|
|
|
import javax.persistence.Column;
|
|
import javax.persistence.Entity;
|
|
import javax.persistence.FetchType;
|
|
import javax.persistence.GeneratedValue;
|
|
import javax.persistence.GenerationType;
|
|
import javax.persistence.Id;
|
|
import javax.persistence.JoinColumn;
|
|
import javax.persistence.ManyToOne;
|
|
import javax.persistence.SequenceGenerator;
|
|
import javax.persistence.Table;
|
|
import javax.validation.constraints.NotNull;
|
|
|
|
import com.jasamedika.medifirst2000.base.BaseMaster;
|
|
import com.jasamedika.medifirst2000.helper.Caption;
|
|
|
|
@Entity
|
|
@Table(name = "PegawaiStrukturGajiByGolMakan_M")
|
|
public class GajiPerGolonganMakan extends BaseMaster {
|
|
|
|
@Id
|
|
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "public.gaji_per_golongan_makan_m_id_seq")
|
|
@SequenceGenerator(name = "public.gaji_per_golongan_makan_m_id_seq", sequenceName = "public.gaji_per_golongan_makan_m_id_seq", allocationSize = 1)
|
|
@Column(name = "id")
|
|
private Integer id;
|
|
|
|
@ManyToOne(fetch = FetchType.LAZY)
|
|
@NotNull(message = "Komponen Harga tidak boleh kosong")
|
|
@JoinColumn(name = "KdKomponenHargaFk", nullable = false)
|
|
@Caption(value = "Komponen Harga")
|
|
private KomponenHarga komponenHarga;
|
|
|
|
@ManyToOne(fetch = FetchType.LAZY)
|
|
@JoinColumn(name = "GolonganPegawaiFk")
|
|
@Caption(value = "Golongan Pegawai")
|
|
private Golongan Golongan;
|
|
|
|
@NotNull(message = "Harga Satuan tidak boleh kosong")
|
|
@Column(name = "HargaSatuan", nullable = false)
|
|
@Caption(value = "Harga Satuan")
|
|
private float hargaSatuan;
|
|
|
|
@NotNull(message = "Factor Rate tidak boleh kosong")
|
|
@Column(name = "FactorRate", nullable = false)
|
|
@Caption(value = "Factor Rate")
|
|
private long factorRate;
|
|
|
|
@NotNull(message = "Operator Factor Rate tidak boleh kosong")
|
|
@Column(name = "OperatorFactorRate", length = 1, nullable = false)
|
|
@Caption(value = "Operator Factor Rate")
|
|
private String operatorFactorRate;
|
|
|
|
public Integer getId() {
|
|
return id;
|
|
}
|
|
|
|
public void setId(Integer id) {
|
|
this.id = id;
|
|
}
|
|
|
|
public KomponenHarga getKomponenHarga() {
|
|
return komponenHarga;
|
|
}
|
|
|
|
public void setKomponenHarga(KomponenHarga komponenHarga) {
|
|
this.komponenHarga = komponenHarga;
|
|
}
|
|
|
|
public Golongan getGolongan() {
|
|
return Golongan;
|
|
}
|
|
|
|
public void setGolongan(Golongan golongan) {
|
|
Golongan = golongan;
|
|
}
|
|
|
|
public float getHargaSatuan() {
|
|
return hargaSatuan;
|
|
}
|
|
|
|
public void setHargaSatuan(float hargaSatuan) {
|
|
this.hargaSatuan = hargaSatuan;
|
|
}
|
|
|
|
public long getFactorRate() {
|
|
return factorRate;
|
|
}
|
|
|
|
public void setFactorRate(long factorRate) {
|
|
this.factorRate = factorRate;
|
|
}
|
|
|
|
public String getOperatorFactorRate() {
|
|
return operatorFactorRate;
|
|
}
|
|
|
|
public void setOperatorFactorRate(String operatorFactorRate) {
|
|
this.operatorFactorRate = operatorFactorRate;
|
|
}
|
|
|
|
}
|