134 lines
3.7 KiB
Java
134 lines
3.7 KiB
Java
package com.jasamedika.medifirst2000.entities;
|
|
|
|
import java.util.HashSet;
|
|
import java.util.Set;
|
|
|
|
import javax.persistence.CascadeType;
|
|
import javax.persistence.Column;
|
|
import javax.persistence.Entity;
|
|
import javax.persistence.FetchType;
|
|
import javax.persistence.JoinColumn;
|
|
import javax.persistence.ManyToOne;
|
|
import javax.persistence.OneToMany;
|
|
import javax.persistence.Table;
|
|
|
|
import com.fasterxml.jackson.annotation.JsonBackReference;
|
|
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
|
import com.jasamedika.medifirst2000.base.BaseTransaction;
|
|
import com.jasamedika.medifirst2000.helper.Caption;
|
|
import com.jasamedika.medifirst2000.vo.IpsrsTeknisiKalibrasiVO;
|
|
|
|
@Entity
|
|
@Table(name = "IpsrsKontakService_T")
|
|
@JsonIgnoreProperties({"hibernateLazyInitializer", "handler"})
|
|
public class IpsrsKontakService extends BaseTransaction{
|
|
|
|
@ManyToOne(fetch = FetchType.LAZY)
|
|
@Caption(value = "Ipsrs Maintenance")
|
|
@JoinColumn(name = "ObjectIpsrsMaintenanceFk")
|
|
private IpsrsMaintenance ipsrsMaintenance;
|
|
|
|
@Column(name = "ObjectIpsrsMaintenanceFk", columnDefinition = "CHAR(32)", nullable = true, insertable = false, updatable = false)
|
|
private String ipsrsMaintenanceId;
|
|
|
|
@Caption(value = "Jenis Periode")
|
|
@Column(name = "JenisPeriode", nullable = true)
|
|
private String jenisPeriode;
|
|
|
|
@Caption(value = "jadwal KontakService Service")
|
|
@Column(name = "JadwalKontakService", nullable = true)
|
|
private String jadwalKontakService;
|
|
|
|
@Caption(value = "Alert Kontak Service")
|
|
@Column(name = "AlertKontakService", nullable = true)
|
|
private String alertKontakService;
|
|
|
|
@Caption(value = "status Kontak Service")
|
|
@Column(name = "StatusKontakService", nullable = true)
|
|
private String statusKontakService;
|
|
|
|
@ManyToOne(fetch = FetchType.LAZY)
|
|
@JoinColumn(name = "ObjectRekananFk")
|
|
@Caption(value = "Rekanan")
|
|
private Rekanan rekanan;
|
|
|
|
@Column(name = "ObjectRekananFk",nullable=true, insertable = false, updatable = false)
|
|
private Integer rekananId;
|
|
|
|
@JsonBackReference
|
|
@OneToMany(cascade=CascadeType.ALL,fetch = FetchType.LAZY, mappedBy = "ipsrsKontakService")
|
|
private Set<IpsrsTeknisiKontakService> ipsrsTeknisiKontakService = new HashSet<>();
|
|
|
|
public IpsrsMaintenance getIpsrsMaintenance() {
|
|
return ipsrsMaintenance;
|
|
}
|
|
|
|
public void setIpsrsMaintenance(IpsrsMaintenance ipsrsMaintenance) {
|
|
this.ipsrsMaintenance = ipsrsMaintenance;
|
|
}
|
|
|
|
public String getIpsrsMaintenanceId() {
|
|
return ipsrsMaintenanceId;
|
|
}
|
|
|
|
public void setIpsrsMaintenanceId(String ipsrsMaintenanceId) {
|
|
this.ipsrsMaintenanceId = ipsrsMaintenanceId;
|
|
}
|
|
|
|
public String getJenisPeriode() {
|
|
return jenisPeriode;
|
|
}
|
|
|
|
public void setJenisPeriode(String jenisPeriode) {
|
|
this.jenisPeriode = jenisPeriode;
|
|
}
|
|
|
|
public String getJadwalKontakService() {
|
|
return jadwalKontakService;
|
|
}
|
|
|
|
public void setJadwalKontakService(String jadwalKontakService) {
|
|
this.jadwalKontakService = jadwalKontakService;
|
|
}
|
|
|
|
public String getAlertKontakService() {
|
|
return alertKontakService;
|
|
}
|
|
|
|
public void setAlertKontakService(String alertKontakService) {
|
|
this.alertKontakService = alertKontakService;
|
|
}
|
|
|
|
public String getStatusKontakService() {
|
|
return statusKontakService;
|
|
}
|
|
|
|
public void setStatusKontakService(String statusKontakService) {
|
|
this.statusKontakService = statusKontakService;
|
|
}
|
|
|
|
public Rekanan getRekanan() {
|
|
return rekanan;
|
|
}
|
|
|
|
public void setRekanan(Rekanan rekanan) {
|
|
this.rekanan = rekanan;
|
|
}
|
|
|
|
public Integer getRekananId() {
|
|
return rekananId;
|
|
}
|
|
|
|
public void setRekananId(Integer rekananId) {
|
|
this.rekananId = rekananId;
|
|
}
|
|
|
|
public Set<IpsrsTeknisiKontakService> getIpsrsTeknisiKontakService() {
|
|
return ipsrsTeknisiKontakService;
|
|
}
|
|
|
|
public void setIpsrsTeknisiKontakService(Set<IpsrsTeknisiKontakService> ipsrsTeknisiKontakService) {
|
|
this.ipsrsTeknisiKontakService = ipsrsTeknisiKontakService;
|
|
}
|
|
}
|