57 lines
1.6 KiB
Java
57 lines
1.6 KiB
Java
package com.jasamedika.medifirst2000.entities;
|
|
|
|
import javax.persistence.Column;
|
|
import javax.persistence.Entity;
|
|
import javax.persistence.FetchType;
|
|
import javax.persistence.JoinColumn;
|
|
import javax.persistence.ManyToOne;
|
|
import javax.persistence.Table;
|
|
import javax.validation.constraints.NotNull;
|
|
|
|
import com.fasterxml.jackson.annotation.JsonBackReference;
|
|
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
|
import com.jasamedika.medifirst2000.base.BaseTransaction;
|
|
import com.jasamedika.medifirst2000.helper.Caption;
|
|
|
|
@Entity
|
|
@Table(name = "MapPegawaiLimbah_T")
|
|
public class MapPegawaiLimbah extends BaseTransaction {
|
|
|
|
@JsonIgnoreProperties({"hibernateLazyInitializer", "handler"})
|
|
@ManyToOne(fetch=FetchType.LAZY)
|
|
@JoinColumn(name = "ObjectPetugasFk")
|
|
@NotNull(message = "Petugas tidak boleh kosong")
|
|
@Caption(value="Object Petugas")
|
|
private Pegawai petugas;
|
|
|
|
@Column(name = "ObjectPetugasFk", insertable = false, updatable = false, nullable = false)
|
|
private Integer petugasId;
|
|
|
|
@JsonBackReference
|
|
@ManyToOne
|
|
@JoinColumn(name = "ObjectLimbahB3MasukFk")
|
|
@Caption(value="Object Limbah B3 Masuk")
|
|
private LimbahB3Masuk limbahB3Masuk;
|
|
|
|
@Column(name = "ObjectLimbahB3MasukFk", columnDefinition = "CHAR(32)", insertable = false, updatable = false, nullable = true)
|
|
private String ObjectLimbahB3MasukId;
|
|
|
|
public Pegawai getPetugas() {
|
|
return petugas;
|
|
}
|
|
|
|
public void setPetugas(Pegawai petugas) {
|
|
this.petugas = petugas;
|
|
}
|
|
|
|
public LimbahB3Masuk getLimbahB3Masuk() {
|
|
return limbahB3Masuk;
|
|
}
|
|
|
|
public void setLimbahB3Masuk(LimbahB3Masuk limbahB3Masuk) {
|
|
this.limbahB3Masuk = limbahB3Masuk;
|
|
}
|
|
|
|
|
|
}
|