inisialisasi kembali 3
This commit is contained in:
@@ -0,0 +1,261 @@
|
||||
package org.sadigit.entity.transaksi;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.List;
|
||||
|
||||
import org.hibernate.annotations.Immutable;
|
||||
import org.locationtech.jts.geom.Geometry;
|
||||
import org.sadigit.adapter.GeometryAdapter;
|
||||
import org.sadigit.entity.referensi.Cuaca;
|
||||
import org.sadigit.entity.referensi.Dampak;
|
||||
import org.sadigit.entity.referensi.Equipment;
|
||||
import org.sadigit.entity.referensi.Fasilitas;
|
||||
import org.sadigit.entity.referensi.GrupPenyebabGangguan;
|
||||
import org.sadigit.entity.referensi.Kelompok;
|
||||
import org.sadigit.entity.referensi.KelompokUtama;
|
||||
import org.sadigit.entity.referensi.PenyebabGangguan;
|
||||
import org.sadigit.entity.referensi.Posko;
|
||||
import org.sadigit.entity.referensi.Prioritas;
|
||||
import org.sadigit.entity.referensi.SubFasilitas;
|
||||
import org.sadigit.entity.referensi.SubTipePermasalahan;
|
||||
import org.sadigit.entity.referensi.TarifDaya;
|
||||
import org.sadigit.entity.referensi.Tindakan;
|
||||
import org.sadigit.entity.referensi.TipePermasalahan;
|
||||
import org.sadigit.entity.referensi.MasterKelurahan;
|
||||
import org.sadigit.entity.referensi.MerkMeter;
|
||||
|
||||
import io.quarkus.hibernate.orm.panache.PanacheEntityBase;
|
||||
import jakarta.json.bind.annotation.JsonbTypeAdapter;
|
||||
import jakarta.persistence.*;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
@Entity
|
||||
@Setter
|
||||
@Getter
|
||||
@Table(name = "gangguan", schema = "apkt_transactional")
|
||||
@Immutable
|
||||
public class Gangguan extends PanacheEntityBase {
|
||||
|
||||
@Id
|
||||
@SequenceGenerator(name = "gangguan_seq", sequenceName = "apkt_transactional.gangguan_seq", allocationSize = 1)
|
||||
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "gangguan_seq")
|
||||
@Column(name = "id")
|
||||
private Long id;
|
||||
@Column(name = "id_pelanggan_no_meter")
|
||||
private Long id_pelanggan_no_meter;
|
||||
|
||||
@ManyToOne(fetch = FetchType.EAGER)
|
||||
@JoinColumn(name = "id_posko", foreignKey = @ForeignKey(name = "posko_fk"))
|
||||
private Posko master_posko;
|
||||
|
||||
@ManyToOne(fetch = FetchType.EAGER)
|
||||
@JoinColumn(name = "id_tipe_permasalahan", foreignKey = @ForeignKey(name = "id_tipe_permasalahan"))
|
||||
private TipePermasalahan tipePermasalahan;
|
||||
|
||||
@Column(name = "alamat_pelanggan")
|
||||
private String alamat_pelanggan;
|
||||
|
||||
@Column(name = "nama_pelapor")
|
||||
private String nama_pelapor;
|
||||
|
||||
@Column(name = "telepon_pelapor")
|
||||
private String telepon_pelapor;
|
||||
|
||||
@Column(name = "hp_pelapor")
|
||||
private String hp_pelapor;
|
||||
|
||||
@Column(name = "fax_pelapor")
|
||||
private String fax_pelapor;
|
||||
|
||||
@Column(name = "email_pelapor")
|
||||
private String email_pelapor;
|
||||
|
||||
@Column(name = "alamat_pelapor")
|
||||
private String alamat_pelapor;
|
||||
|
||||
@Column(name = "media")
|
||||
private String media;
|
||||
|
||||
@Column(name = "waktu_padam")
|
||||
private LocalDateTime waktu_padam;
|
||||
|
||||
@Column(name = "is_konfirmasi")
|
||||
private Boolean konfirmasi;
|
||||
|
||||
@JsonbTypeAdapter(GeometryAdapter.class)
|
||||
@Column(name = "lokasi", columnDefinition = "geometry(Point,4326)")
|
||||
private Geometry lokasi;
|
||||
|
||||
@Column(name = "no_laporan", unique = true)
|
||||
private String no_laporan;
|
||||
|
||||
@Column(name = "keterangan")
|
||||
private String keterangan;
|
||||
|
||||
@Column(name = "created_date")
|
||||
private LocalDateTime created_date;
|
||||
|
||||
@Column(name = "created_by")
|
||||
private Long created_by;
|
||||
|
||||
@Column(name = "updated_date")
|
||||
private LocalDateTime updated_date;
|
||||
|
||||
@Column(name = "updated_by")
|
||||
private Long updated_by;
|
||||
|
||||
@Column(name = "status_akhir")
|
||||
private String status_akhir;
|
||||
|
||||
@Column(name = "tipe_wo")
|
||||
private Long tipe_wo;
|
||||
|
||||
@Column(name = "unit")
|
||||
private Long unit;
|
||||
|
||||
@Column(name = "eskalasi")
|
||||
private Long eskalasi;
|
||||
|
||||
@Column(name = "permasalahan")
|
||||
private String permasalahan;
|
||||
|
||||
@Column(name = "waktu_lapor")
|
||||
private LocalDateTime waktu_lapor;
|
||||
|
||||
// @Column(name = "id_regu")
|
||||
// private Long id_regu;
|
||||
|
||||
@Column(name = "waktu_penugasan")
|
||||
private LocalDateTime waktu_penugasan;
|
||||
|
||||
@Column(name = "waktu_perjalanan")
|
||||
private LocalDateTime waktu_perjalanan;
|
||||
|
||||
@Column(name = "waktu_pengerjaan")
|
||||
private LocalDateTime waktu_pengerjaan;
|
||||
|
||||
@Column(name = "waktu_nyala_sementara")
|
||||
private LocalDateTime waktu_nyala_sementara;
|
||||
|
||||
@Column(name = "waktu_nyala")
|
||||
private LocalDateTime waktu_nyala;
|
||||
|
||||
@Column(name = "waktu_batal")
|
||||
private LocalDateTime waktu_batal;
|
||||
|
||||
@Column(name = "waktu_selesai")
|
||||
private LocalDateTime waktu_selesai;
|
||||
|
||||
@Column(name = "alasan")
|
||||
private String alasan;
|
||||
|
||||
@Column(name = "patokan")
|
||||
private String patokan;
|
||||
|
||||
@ManyToOne(fetch = FetchType.EAGER)
|
||||
@JoinColumn(name = "id_sub_tipe_permasalahan", foreignKey = @ForeignKey(name = "gangguan_fk"))
|
||||
private SubTipePermasalahan sub_tipe_permasalahan;
|
||||
|
||||
@Column(name = "tipe_gangguan")
|
||||
private Long tipe_gangguan;
|
||||
|
||||
@Column(name = "alasan_pembatalan")
|
||||
private String alasan_pembatalan;
|
||||
|
||||
@Column(name = "jarak")
|
||||
private Long jarak;
|
||||
|
||||
@ManyToOne(fetch = FetchType.EAGER)
|
||||
@JoinColumn(name = "id_kelompok", foreignKey = @ForeignKey(name = "kelompok"))
|
||||
private Kelompok kelompok;
|
||||
|
||||
@ManyToOne(fetch = FetchType.EAGER)
|
||||
@JoinColumn(name = "id_sub_fasilitas", foreignKey = @ForeignKey(name = "sub_fasilitas_fk"))
|
||||
private SubFasilitas sub_fasilitas;
|
||||
|
||||
@ManyToOne(fetch = FetchType.EAGER)
|
||||
@JoinColumn(name = "id_equipment", foreignKey = @ForeignKey(name = "equipment_fk"))
|
||||
private Equipment equipment;
|
||||
|
||||
@ManyToOne(fetch = FetchType.EAGER)
|
||||
@JoinColumn(name = "id_prioritas", foreignKey = @ForeignKey(name = "prioritas"))
|
||||
private Prioritas prioritas;
|
||||
|
||||
@ManyToOne(fetch = FetchType.EAGER)
|
||||
@JoinColumn(name = "id_penyebab", foreignKey = @ForeignKey(name = "penyebab"))
|
||||
private PenyebabGangguan penyebab;
|
||||
|
||||
@ManyToOne(fetch = FetchType.EAGER)
|
||||
@JoinColumn(name = "id_regu", referencedColumnName = "id")
|
||||
private MasterRegu regu;
|
||||
|
||||
@Column(name = "jumlah_pelanggan_termarking")
|
||||
private Long jumlah_pelanggan_termarking;
|
||||
|
||||
@Column(name = "jumlah_lapor")
|
||||
private Long jumlah_lapor;
|
||||
|
||||
@Column(name = "waktu_konfirmasi")
|
||||
private LocalDateTime waktu_konfirmasi;
|
||||
|
||||
@ManyToOne(fetch = FetchType.EAGER)
|
||||
@JoinColumn(name = "id_fasilitas", foreignKey = @ForeignKey(name = "fasilitas"))
|
||||
private Fasilitas fasilitas;
|
||||
|
||||
@ManyToOne(fetch = FetchType.EAGER)
|
||||
@JoinColumn(name = "id_kelompok_utama", foreignKey = @ForeignKey(name = "kelompok_utama"))
|
||||
private KelompokUtama kelompok_utama;
|
||||
|
||||
@ManyToOne(fetch = FetchType.EAGER)
|
||||
@JoinColumn(name = "id_dampak", foreignKey = @ForeignKey(name = "dampak"))
|
||||
private Dampak dampak;
|
||||
|
||||
@ManyToOne(fetch = FetchType.EAGER)
|
||||
@JoinColumn(name = "id_grup_penyebab_gangguan", foreignKey = @ForeignKey(name = "grup_penyebab_gangguan"))
|
||||
private GrupPenyebabGangguan grup_penyebab_gangguan;
|
||||
|
||||
@OneToMany(mappedBy = "gangguan", cascade = CascadeType.ALL, orphanRemoval = true)
|
||||
private List<GangguanTransaksi> gangguan_transaksi;
|
||||
|
||||
@ManyToOne(fetch = FetchType.EAGER)
|
||||
@JoinColumn(name = "id_kelurahan", referencedColumnName = "id_kelurahan", foreignKey = @ForeignKey(name = "kelurahan"))
|
||||
private MasterKelurahan master_kelurahan;
|
||||
// |id_tindakan|id_cuaca|fax|keterangan_lokasi|waktu_fax|nama_media|waktu_media|merk_meter
|
||||
@ManyToOne(fetch = FetchType.EAGER)
|
||||
@JoinColumn(name = "id_tindakan", referencedColumnName = "id", foreignKey = @ForeignKey(name = "tindakan"))
|
||||
private Tindakan tindakan;
|
||||
@ManyToOne(fetch = FetchType.EAGER)
|
||||
@JoinColumn(name = "id_cuaca", referencedColumnName = "id", foreignKey = @ForeignKey(name = "cuaca"))
|
||||
private Cuaca cuaca;
|
||||
@Column(name = "fax")
|
||||
private String fax;
|
||||
@Column(name = "keterangan_lokasi")
|
||||
private String keterangan_lokasi;
|
||||
@Column(name = "waktu_fax")
|
||||
private LocalDateTime waktu_fax;
|
||||
@Column(name = "nama_media")
|
||||
private String nama_media;
|
||||
@Column(name = "waktu_media")
|
||||
private LocalDateTime waktu_media;
|
||||
|
||||
@ManyToOne(fetch = FetchType.EAGER)
|
||||
@JoinColumn(name = "id_merk_meter", referencedColumnName = "id", foreignKey = @ForeignKey(name = "merk_meter"))
|
||||
private MerkMeter master_merk_meter;
|
||||
|
||||
@ManyToOne(fetch = FetchType.EAGER)
|
||||
@JoinColumn(name = "id_tarif_daya", referencedColumnName = "id", foreignKey = @ForeignKey(name = "tarif_daya"))
|
||||
private TarifDaya tarifDaya;
|
||||
|
||||
@Column(name = "alasan_nyala_sementara")
|
||||
private String alasan_nyala_sementara;
|
||||
@Column(name = "penyebab_sementara")
|
||||
private String penyebab_sementara;
|
||||
private String tindakan_telah_dilakukan_nyala_sementara;
|
||||
private String usulan_tindakan_selanjutnya;
|
||||
private String tindakan_telah_dilakukan_nyala;
|
||||
|
||||
private String penyebab_nyala;
|
||||
private Long jumlah_pelanggan_padam;
|
||||
private String ctt;
|
||||
}
|
||||
@@ -0,0 +1,52 @@
|
||||
package org.sadigit.entity.transaksi;
|
||||
|
||||
import jakarta.persistence.*;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
import org.sadigit.entity.referensi.Posko;
|
||||
|
||||
import io.quarkus.hibernate.orm.panache.PanacheEntityBase;
|
||||
|
||||
import java.time.LocalDate;
|
||||
|
||||
@Entity
|
||||
@Setter
|
||||
@Getter
|
||||
@Table(name = "gangguan_alih_posko", schema = "apkt_transactional")
|
||||
public class GangguanAlihPosko extends PanacheEntityBase{
|
||||
|
||||
@Id
|
||||
@SequenceGenerator(name = "gangguan_alih_posko_seq", sequenceName = "apkt_transactional.gangguan_alih_posko_seq", allocationSize = 1)
|
||||
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "gangguan_alih_posko_seq")
|
||||
@Column(name = "id")
|
||||
private Long id;
|
||||
|
||||
@ManyToOne
|
||||
@JoinColumn(name = "id_gangguan", nullable = false)
|
||||
private Gangguan gangguan;
|
||||
|
||||
@ManyToOne
|
||||
@JoinColumn(name = "id_posko_lama", nullable = false)
|
||||
private Posko poskoLama;
|
||||
|
||||
@ManyToOne
|
||||
@JoinColumn(name = "id_posko_baru", nullable = false)
|
||||
private Posko poskoBaru;
|
||||
|
||||
@Column(name = "waktu_alih_posko", nullable = false)
|
||||
private LocalDate waktu_alih_posko;
|
||||
|
||||
@Column(name = "created_date")
|
||||
private LocalDate created_date;
|
||||
|
||||
@Column(name = "created_by")
|
||||
private Long created_by;
|
||||
|
||||
@Column(name = "updated_date")
|
||||
private LocalDate updated_date;
|
||||
|
||||
@Column(name = "updated_by")
|
||||
private Long updated_by;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
package org.sadigit.entity.transaksi;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
import org.hibernate.annotations.Immutable;
|
||||
|
||||
import io.quarkus.hibernate.orm.panache.PanacheEntity;
|
||||
import jakarta.persistence.*;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
@Entity
|
||||
@Setter
|
||||
@Getter
|
||||
@Table(name = "gangguan_foto", schema = "apkt_transactional")
|
||||
@Immutable
|
||||
public class GangguanFoto extends PanacheEntity {
|
||||
|
||||
@Column(name = "id")
|
||||
private Long id;
|
||||
@ManyToOne
|
||||
@JoinColumn(name = "id_gangguan", nullable = false)
|
||||
private Gangguan gangguan;
|
||||
|
||||
@Column(name = "created_date")
|
||||
private LocalDateTime createdDate;
|
||||
|
||||
@Column(name = "created_by")
|
||||
private Long createdBy;
|
||||
|
||||
@Column(name = "updated_date")
|
||||
private LocalDateTime updatedDate;
|
||||
|
||||
@Column(name = "updated_by")
|
||||
private Long updatedBy;
|
||||
|
||||
@Column(nullable = false)
|
||||
private String foto;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,88 @@
|
||||
package org.sadigit.entity.transaksi;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
import io.quarkus.hibernate.orm.panache.PanacheEntityBase;
|
||||
import jakarta.persistence.Column;
|
||||
import jakarta.persistence.Entity;
|
||||
import jakarta.persistence.GeneratedValue;
|
||||
import jakarta.persistence.GenerationType;
|
||||
import jakarta.persistence.Id;
|
||||
import jakarta.persistence.JoinColumn;
|
||||
import jakarta.persistence.ManyToOne;
|
||||
import jakarta.persistence.SequenceGenerator;
|
||||
import jakarta.persistence.Table;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
@Entity
|
||||
@Setter
|
||||
@Getter
|
||||
@Table(name = "gangguan_kode_ctt", schema = "apkt_transactional")
|
||||
public class GangguanKodeCTT extends PanacheEntityBase {
|
||||
@Id
|
||||
@SequenceGenerator(name = "gangguan_kode_ctt_seq", sequenceName = "apkt_transactional.gangguan_kode_ctt_seq", allocationSize = 1)
|
||||
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "gangguan_kode_ctt_seq")
|
||||
@Column(name = "id", nullable = false)
|
||||
private Long id;
|
||||
|
||||
@ManyToOne
|
||||
@JoinColumn(name = "id_gangguan", nullable = false)
|
||||
private Gangguan gangguan;
|
||||
|
||||
@Column(name = "kode_08")
|
||||
private String kode_08;
|
||||
|
||||
@Column(name = "kode_08_hasil")
|
||||
private Long kode_08_hasil;
|
||||
|
||||
@Column(name = "kode_70")
|
||||
private String kode_70;
|
||||
|
||||
@Column(name = "kode_70_hasil")
|
||||
private Long kode_70_hasil;
|
||||
|
||||
@Column(name = "kode_71")
|
||||
private String kode_71;
|
||||
|
||||
@Column(name = "kode_71_hasil")
|
||||
private Long kode_71_hasil;
|
||||
|
||||
@Column(name = "kode_41")
|
||||
private String kode_41;
|
||||
|
||||
@Column(name = "kode_41_hasil")
|
||||
private Long kode_41_hasil;
|
||||
|
||||
@Column(name = "kode_44")
|
||||
private String kode_44;
|
||||
|
||||
@Column(name = "kode_44_hasil")
|
||||
private Long kode_44_hasil;
|
||||
|
||||
@Column(name = "kode_45")
|
||||
private String kode_45;
|
||||
|
||||
@Column(name = "kode_45_hasil")
|
||||
private Long kode_45_hasil;
|
||||
|
||||
@Column(name = "kode_46")
|
||||
private String kode_46;
|
||||
|
||||
@Column(name = "kode_46_hasil")
|
||||
private Long kode_46_hasil;
|
||||
|
||||
@Column(name = "kode_37")
|
||||
private String kode_37;
|
||||
|
||||
@Column(name = "kode_37_hasil")
|
||||
private Long kode_37_hasil;
|
||||
|
||||
@Column(name = "kode_47")
|
||||
private String kode_47;
|
||||
|
||||
@Column(name = "kode_47_hasil")
|
||||
private Long kode_47_hasil;
|
||||
|
||||
@Column(name = "created_date")
|
||||
private LocalDateTime created_date;
|
||||
}
|
||||
@@ -0,0 +1,69 @@
|
||||
package org.sadigit.entity.transaksi;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
import org.hibernate.annotations.Immutable;
|
||||
|
||||
import jakarta.persistence.Column;
|
||||
import jakarta.persistence.Entity;
|
||||
import jakarta.persistence.GeneratedValue;
|
||||
import jakarta.persistence.GenerationType;
|
||||
import jakarta.persistence.Id;
|
||||
import jakarta.persistence.Table;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
@Entity
|
||||
@Setter
|
||||
@Getter
|
||||
@Table(name = "gangguan_kompor", schema = "apkt_transactional")
|
||||
@Immutable
|
||||
public class GangguanKompor {
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||
@Column(name = "id", nullable = false, unique = true)
|
||||
private Long id;
|
||||
|
||||
@Column(name = "id_gangguan", nullable = false)
|
||||
private Long id_gangguan;
|
||||
|
||||
@Column(name = "st_cabut")
|
||||
private Long st_cabut;
|
||||
|
||||
@Column(name = "st_pasang")
|
||||
private Long st_pasang;
|
||||
|
||||
@Column(name = "kwh_pakai")
|
||||
private Long kwh_pakai;
|
||||
|
||||
@Column(name = "id_kompor")
|
||||
private String id_kompor;
|
||||
|
||||
@Column(name = "kondisi_lcd")
|
||||
private String kondisi_lcd;
|
||||
|
||||
@Column(name = "foto_lama")
|
||||
private String foto_lama;
|
||||
|
||||
@Column(name = "foto_baru")
|
||||
private String foto_baru;
|
||||
|
||||
@Column(name = "id_tipe_keluhan")
|
||||
private Long id_tipe_keluhan;
|
||||
|
||||
@Column(name = "id_sub_tipe_keluhan")
|
||||
private Long id_sub_tipe_keluhan;
|
||||
|
||||
@Column(name = "created_date")
|
||||
private LocalDateTime createdDate;
|
||||
|
||||
@Column(name = "created_by")
|
||||
private Long created_by;
|
||||
|
||||
@Column(name = "updated_date")
|
||||
private LocalDateTime updated_date;
|
||||
|
||||
@Column(name = "updated_by")
|
||||
private Long updated_by;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,52 @@
|
||||
package org.sadigit.entity.transaksi;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
import io.quarkus.hibernate.orm.panache.PanacheEntityBase;
|
||||
import jakarta.persistence.*;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.Setter;
|
||||
|
||||
@Entity
|
||||
@Setter
|
||||
@Getter
|
||||
@Table(name = "gangguan_lapor_ulang", schema = "apkt_transactional")
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class GangguanLaporUlang extends PanacheEntityBase{
|
||||
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||
@Column(name = "id", nullable = false)
|
||||
private Long id;
|
||||
|
||||
@ManyToOne
|
||||
@JoinColumn(name = "id_gangguan", nullable = false)
|
||||
private Gangguan gangguan;
|
||||
|
||||
@Column(name = "no_laporan_referensi", nullable = false)
|
||||
private String no_laporan_referensi;
|
||||
|
||||
@Column(name = "no_laporan_baru", nullable = false)
|
||||
private String no_laporan_baru;
|
||||
|
||||
@Column(name = "laporan_ke", nullable = false)
|
||||
private Long laporan_ke;
|
||||
|
||||
@Column(name = "created_date")
|
||||
private LocalDateTime created_date;
|
||||
|
||||
@Column(name = "created_by")
|
||||
private Long created_by;
|
||||
|
||||
@Column(name = "updated_date")
|
||||
private LocalDateTime updated_date;
|
||||
|
||||
@Column(name = "updated_by")
|
||||
private Long updated_by;
|
||||
|
||||
// Getters and Setters
|
||||
|
||||
}
|
||||
@@ -0,0 +1,54 @@
|
||||
package org.sadigit.entity.transaksi;
|
||||
|
||||
import org.hibernate.annotations.Immutable;
|
||||
import org.sadigit.entity.SessionUser;
|
||||
|
||||
import io.quarkus.hibernate.orm.panache.PanacheEntityBase;
|
||||
import jakarta.persistence.*;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
@Entity
|
||||
@Setter
|
||||
@Getter
|
||||
@Table(name = "gangguan_tm_transaksi", schema = "apkt_transactional")
|
||||
@Immutable
|
||||
public class GangguanTMTransaksi extends PanacheEntityBase implements Serializable {
|
||||
|
||||
@Id
|
||||
@SequenceGenerator(name = "gangguan_tm_transaksi_seq", sequenceName = "apkt_transactional.gangguan_tm_transaksi_seq", allocationSize = 1)
|
||||
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "gangguan_tm_transaksi_seq")
|
||||
@Column(name = "id")
|
||||
private Long id;
|
||||
|
||||
@ManyToOne
|
||||
@JoinColumn(name = "id_gangguan_tm", nullable = false)
|
||||
private GangguanTm gangguanTm;
|
||||
|
||||
@Column(name = "jenis", nullable = false)
|
||||
private String jenis;
|
||||
|
||||
@Column(name = "waktu")
|
||||
private LocalDateTime waktu;
|
||||
|
||||
@Column(name = "created_date", nullable = false)
|
||||
private LocalDateTime created_date;
|
||||
|
||||
@Column(name = "created_by", nullable = false)
|
||||
private Long created_by;
|
||||
|
||||
@Column(name = "notif_flag", nullable = true)
|
||||
private Boolean notif_flag;
|
||||
|
||||
@Column(name = "waktu_read")
|
||||
private LocalDateTime waktu_read;
|
||||
|
||||
@ManyToOne
|
||||
@JoinColumn(name = "id_session")
|
||||
private SessionUser session;
|
||||
|
||||
// Constructors, getters, setters, etc.
|
||||
}
|
||||
@@ -0,0 +1,91 @@
|
||||
package org.sadigit.entity.transaksi;
|
||||
|
||||
import java.sql.Timestamp;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
import org.hibernate.annotations.CreationTimestamp;
|
||||
import org.hibernate.annotations.Immutable;
|
||||
import org.hibernate.annotations.UpdateTimestamp;
|
||||
|
||||
import io.quarkus.hibernate.orm.panache.PanacheEntity;
|
||||
import jakarta.persistence.*;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
@Entity
|
||||
@Setter
|
||||
@Getter
|
||||
@Table(name = "gangguan_tm", schema = "apkt_transactional")
|
||||
@Immutable
|
||||
public class GangguanTeganganMenengah extends PanacheEntity {
|
||||
@Column(name = "id")
|
||||
private Long id;
|
||||
|
||||
@Column(name = "prioritas")
|
||||
private String prioritas;
|
||||
|
||||
@Column(name = "id_ulp")
|
||||
private Long idUlp;
|
||||
|
||||
@Column(name = "perkiraan_area_padam")
|
||||
private String perkiraanAreaPadam;
|
||||
|
||||
@Column(name = "estimasi_padam")
|
||||
private String estimasiPadam;
|
||||
|
||||
@Column(name = "titik_gangguan")
|
||||
private String titikGangguan;
|
||||
|
||||
@Column(name = "no_tiang")
|
||||
private String noTiang;
|
||||
|
||||
@Column(name = "nama_asset")
|
||||
private String namaAsset;
|
||||
|
||||
@Column(name = "waktu_catat")
|
||||
private LocalDateTime waktuCatat;
|
||||
|
||||
@Column(name = "waktu_gangguan")
|
||||
private LocalDateTime waktuGangguan;
|
||||
|
||||
@Column(name = "waktu_nyala")
|
||||
private LocalDateTime waktuNyala;
|
||||
|
||||
@Column(name = "status_akhir")
|
||||
private String statusAkhir;
|
||||
|
||||
@Column(name = "jumlah_pelanggan")
|
||||
private Long jumlahPelanggan;
|
||||
|
||||
@Column(name = "ampere")
|
||||
private Long ampere;
|
||||
|
||||
@Column(name = "cuaca")
|
||||
private String cuaca;
|
||||
|
||||
@Column(name = "no_gangguan_tm")
|
||||
private String noGangguanTm;
|
||||
|
||||
@Column(name = "keterangan", length = 4000)
|
||||
private String keterangan;
|
||||
|
||||
@CreationTimestamp
|
||||
@Column(name = "created_date")
|
||||
private Timestamp createdDate;
|
||||
|
||||
@Column(name = "created_by")
|
||||
private Long createdBy;
|
||||
|
||||
@UpdateTimestamp
|
||||
@Column(name = "updated_date")
|
||||
private Timestamp updatedDate;
|
||||
|
||||
@Column(name = "updated_by")
|
||||
private Long updatedBy;
|
||||
|
||||
@Column(name = "id_regu")
|
||||
private Long idRegu;
|
||||
|
||||
@Column(name = "alasan")
|
||||
private String alasan;
|
||||
}
|
||||
@@ -0,0 +1,168 @@
|
||||
package org.sadigit.entity.transaksi;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
import org.hibernate.annotations.Immutable;
|
||||
import org.sadigit.entity.referensi.Cuaca;
|
||||
import org.sadigit.entity.referensi.Dampak;
|
||||
import org.sadigit.entity.referensi.Equipment;
|
||||
import org.sadigit.entity.referensi.Fasilitas;
|
||||
import org.sadigit.entity.referensi.GrupPenyebabGangguan;
|
||||
import org.sadigit.entity.referensi.Kelompok;
|
||||
import org.sadigit.entity.referensi.KelompokUtama;
|
||||
import org.sadigit.entity.referensi.PenyebabGangguan;
|
||||
import org.sadigit.entity.referensi.SubFasilitas;
|
||||
import org.sadigit.entity.referensi.SubTipePermasalahan;
|
||||
import org.sadigit.entity.referensi.TipePermasalahan;
|
||||
import org.sadigit.entity.referensi.Ulp;
|
||||
|
||||
import io.quarkus.hibernate.orm.panache.PanacheEntity;
|
||||
import jakarta.persistence.*;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
@Entity
|
||||
@Setter
|
||||
@Getter
|
||||
@Table(name = "gangguan_tm", schema = "apkt_transactional")
|
||||
@Immutable
|
||||
public class GangguanTm extends PanacheEntity {
|
||||
private Long id;
|
||||
|
||||
@Column(name = "prioritas")
|
||||
private String prioritas;
|
||||
|
||||
@ManyToOne
|
||||
@JoinColumn(name = "id_ulp")
|
||||
private Ulp idUlp;
|
||||
|
||||
@Column(name = "perkiraan_area_padam")
|
||||
private String perkiraanAreaPadam;
|
||||
|
||||
@Column(name = "estimasi_padam")
|
||||
private String estimasiPadam;
|
||||
|
||||
@Column(name = "titik_gangguan")
|
||||
private String titikGangguan;
|
||||
|
||||
@Column(name = "no_tiang")
|
||||
private String noTiang;
|
||||
|
||||
@Column(name = "nama_asset")
|
||||
private String namaAsset;
|
||||
|
||||
@Column(name = "status_akhir")
|
||||
private String statusAkhir;
|
||||
|
||||
@Column(name = "jumlah_pelanggan")
|
||||
private Long jumlahPelanggan;
|
||||
|
||||
@Column(name = "ampere")
|
||||
private Long ampere;
|
||||
|
||||
@Column(name = "cuaca")
|
||||
private String cuaca;
|
||||
|
||||
@Column(name = "no_gangguan_tm")
|
||||
private String noGangguanTm;
|
||||
|
||||
@Column(name = "keterangan", length = 4000)
|
||||
private String keterangan;
|
||||
|
||||
@Column(name = "created_date")
|
||||
private LocalDateTime createdDate;
|
||||
|
||||
@Column(name = "created_by")
|
||||
private Long createdBy;
|
||||
|
||||
@Column(name = "updated_date")
|
||||
private LocalDateTime updatedDate;
|
||||
|
||||
@Column(name = "updated_by")
|
||||
private Long updatedBy;
|
||||
|
||||
@ManyToOne
|
||||
@JoinColumn(name = "id_regu")
|
||||
private MasterRegu idRegu;
|
||||
|
||||
@Column(name = "alasan")
|
||||
private String alasan;
|
||||
|
||||
@Column(name = "id_jaringan")
|
||||
private Long idJaringan;
|
||||
|
||||
@Column(name = "waktu_lapor")
|
||||
private LocalDateTime waktuLapor;
|
||||
|
||||
@Column(name = "waktu_rencana")
|
||||
private LocalDateTime waktuRencana;
|
||||
|
||||
@Column(name = "waktu_pengerjaan")
|
||||
private LocalDateTime waktuPengerjaan;
|
||||
|
||||
@Column(name = "waktu_nyala_bertahap")
|
||||
private LocalDateTime waktuNyalaBertahap;
|
||||
|
||||
@Column(name = "waktu_nyala")
|
||||
private LocalDateTime waktuNyala;
|
||||
|
||||
@Column(name = "waktu_revisi")
|
||||
private LocalDateTime waktuRevisi;
|
||||
|
||||
@Column(name = "waktu_disetujui")
|
||||
private LocalDateTime waktuDisetujui;
|
||||
|
||||
@Column(name = "waktu_selesai")
|
||||
private LocalDateTime waktuSelesai;
|
||||
|
||||
@Column(name = "tipe_jaringan")
|
||||
private String tipeJaringan;
|
||||
|
||||
@ManyToOne
|
||||
@JoinColumn(name = "id_kelompok_utama")
|
||||
private KelompokUtama idKelompokUtama;
|
||||
|
||||
@ManyToOne
|
||||
@JoinColumn(name = "id_kelompok")
|
||||
private Kelompok idKelompok;
|
||||
|
||||
@ManyToOne
|
||||
@JoinColumn(name = "id_fasilitas")
|
||||
private Fasilitas idFasilitas;
|
||||
|
||||
@ManyToOne
|
||||
@JoinColumn(name = "id_sub_fasilitas")
|
||||
private SubFasilitas idSubFasilitas;
|
||||
|
||||
@ManyToOne
|
||||
@JoinColumn(name = "id_equipment")
|
||||
private Equipment idEquipment;
|
||||
|
||||
@Column(name = "waktu_perjalanan")
|
||||
private LocalDateTime waktuPerjalanan;
|
||||
|
||||
@ManyToOne
|
||||
@JoinColumn(name = "id_tipe_permasalahan")
|
||||
private TipePermasalahan idTipePermasalahan;
|
||||
|
||||
@ManyToOne
|
||||
@JoinColumn(name = "id_sub_tipe_permasalahan")
|
||||
private SubTipePermasalahan idSubTipePermasalahan;
|
||||
|
||||
@ManyToOne
|
||||
@JoinColumn(name = "id_penyebab")
|
||||
private PenyebabGangguan idPenyebab;
|
||||
|
||||
@ManyToOne
|
||||
@JoinColumn(name = "id_grup_penyebab")
|
||||
private GrupPenyebabGangguan idGrupPenyebab;
|
||||
|
||||
@ManyToOne
|
||||
@JoinColumn(name = "id_dampak")
|
||||
private Dampak idDampak;
|
||||
|
||||
@ManyToOne
|
||||
@JoinColumn(name = "id_cuaca")
|
||||
private Cuaca idCuaca;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,50 @@
|
||||
package org.sadigit.entity.transaksi;
|
||||
|
||||
import org.hibernate.annotations.Immutable;
|
||||
import org.sadigit.entity.SessionUser;
|
||||
|
||||
import io.quarkus.hibernate.orm.panache.PanacheEntityBase;
|
||||
import jakarta.persistence.*;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
@Entity
|
||||
@Setter
|
||||
@Getter
|
||||
@Table(name = "gangguan_transaksi", schema = "apkt_transactional")
|
||||
@Immutable
|
||||
public class GangguanTransaksi extends PanacheEntityBase implements Serializable {
|
||||
@Id
|
||||
@SequenceGenerator(name = "gangguan_transaksi_seq", sequenceName = "apkt_transactional.gangguan_transaksi_seq", allocationSize = 1)
|
||||
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "gangguan_transaksi_seq")
|
||||
@Column(name = "id")
|
||||
private Long id;
|
||||
|
||||
@ManyToOne
|
||||
@JoinColumn(name = "id_gangguan", nullable = false)
|
||||
private Gangguan gangguan;
|
||||
|
||||
@Column(name = "jenis", nullable = false)
|
||||
private String jenis;
|
||||
|
||||
@Column(name = "waktu")
|
||||
private LocalDateTime waktu;
|
||||
|
||||
@Column(name = "created_date", nullable = false)
|
||||
private LocalDateTime created_date;
|
||||
|
||||
@Column(name = "created_by", nullable = false)
|
||||
private Long created_by;
|
||||
|
||||
@Column(name = "notif_flag", nullable = true)
|
||||
private Boolean notif_flag;
|
||||
|
||||
@ManyToOne
|
||||
@JoinColumn(name = "id_session")
|
||||
private SessionUser session;
|
||||
|
||||
// Constructors, getters, setters, etc.
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
package org.sadigit.entity.transaksi;
|
||||
|
||||
import jakarta.persistence.*;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.sql.Timestamp;
|
||||
|
||||
import io.quarkus.hibernate.orm.panache.PanacheEntityBase;
|
||||
|
||||
@Entity
|
||||
@Setter
|
||||
@Getter
|
||||
@Table(name = "histruntask", schema = "apkt_transactional")
|
||||
public class HistRunTask extends PanacheEntityBase implements Serializable {
|
||||
|
||||
@Id
|
||||
@Column(name = "runtaskid", nullable = false)
|
||||
private Long runTaskId;
|
||||
|
||||
@Column(name = "runworkflowid")
|
||||
private Long runWorkflowId;
|
||||
|
||||
@Column(name = "workflowdetail")
|
||||
private Long workflowDetail;
|
||||
|
||||
@Column(name = "runtaskfrom")
|
||||
private Long runTaskFrom;
|
||||
|
||||
@Column(name = "isdone", length = 1)
|
||||
private String isDone;
|
||||
|
||||
@Column(name = "createdate")
|
||||
private Timestamp createDate;
|
||||
|
||||
@Column(name = "createby")
|
||||
private Long createBy;
|
||||
|
||||
@Column(name = "updatedate")
|
||||
private Timestamp updateDate;
|
||||
|
||||
@Column(name = "updateby")
|
||||
private Long updateBy;
|
||||
|
||||
@Column(name = "STATUS", length = 50)
|
||||
private String status;
|
||||
|
||||
@Column(name = "statustype", length = 50)
|
||||
private String statusType;
|
||||
|
||||
@Column(name = "COMMENTS")
|
||||
private String comments;
|
||||
|
||||
@Column(name = "filtergroup", length = 200)
|
||||
private String filterGroup;
|
||||
|
||||
@Column(name = "ordernumber")
|
||||
private Long orderNumber;
|
||||
|
||||
// Constructors, getters, and setters...
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
package org.sadigit.entity.transaksi;
|
||||
|
||||
import jakarta.persistence.*;
|
||||
import java.io.Serializable;
|
||||
import java.sql.Timestamp;
|
||||
|
||||
import io.quarkus.hibernate.orm.panache.PanacheEntityBase;
|
||||
|
||||
@Entity
|
||||
@Table(name = "histrunworkflow", schema = "apkt_transactional")
|
||||
public class HistRunWorkflow extends PanacheEntityBase implements Serializable {
|
||||
|
||||
@Id
|
||||
@Column(name = "runworkflowid", nullable = false)
|
||||
private Long runWorkflowId;
|
||||
|
||||
@Column(name = "workflowid")
|
||||
private Long workflowId;
|
||||
|
||||
@Column(name = "requestby")
|
||||
private Long requestBy;
|
||||
|
||||
@Column(name = "lastworkflowdetailid")
|
||||
private Long lastWorkflowDetailId;
|
||||
|
||||
@Column(name = "laststatus", length = 50)
|
||||
private String lastStatus;
|
||||
|
||||
@Column(name = "laststatustype", length = 50)
|
||||
private String lastStatusType;
|
||||
|
||||
@Column(name = "createdate")
|
||||
private Timestamp createDate;
|
||||
|
||||
// Constructors, getters, and setters...
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
package org.sadigit.entity.transaksi;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
import io.quarkus.hibernate.orm.panache.PanacheEntity;
|
||||
import jakarta.persistence.Column;
|
||||
import jakarta.persistence.Entity;
|
||||
import jakarta.persistence.Table;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
@Entity
|
||||
@Setter
|
||||
@Getter
|
||||
@Table(name = "jenis_pekerjaan", schema = "apkt_transactional")
|
||||
public class JenisPekerjaan extends PanacheEntity {
|
||||
@Column(name = "id", nullable = false)
|
||||
private Long id;
|
||||
|
||||
@Column(name = "nama", nullable = false)
|
||||
private String nama;
|
||||
|
||||
@Column(name = "created_date")
|
||||
private LocalDateTime created_date;
|
||||
|
||||
@Column(name = "created_by")
|
||||
private Long created_by;
|
||||
|
||||
@Column(name = "updated_date")
|
||||
private LocalDateTime updated_date;
|
||||
|
||||
@Column(name = "updated_by")
|
||||
private Long updated_by;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,166 @@
|
||||
package org.sadigit.entity.transaksi;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
import org.hibernate.annotations.Immutable;
|
||||
import org.locationtech.jts.geom.Geometry;
|
||||
import org.sadigit.adapter.GeometryAdapter;
|
||||
import org.sadigit.entity.referensi.MasterKelurahan;
|
||||
import org.sadigit.entity.referensi.Ulp;
|
||||
|
||||
import io.quarkus.hibernate.orm.panache.PanacheEntityBase;
|
||||
import jakarta.json.bind.annotation.JsonbTypeAdapter;
|
||||
import jakarta.persistence.*;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
@Entity
|
||||
@Setter
|
||||
@Getter
|
||||
@Table(name = "keluhan", schema = "apkt_transactional")
|
||||
@Immutable
|
||||
public class Keluhan extends PanacheEntityBase implements Serializable {
|
||||
@Id
|
||||
@SequenceGenerator(name = "keluhan_seq", sequenceName = "apkt_transactional.keluhan_seq", allocationSize = 1)
|
||||
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "keluhan_seq")
|
||||
@Column(name = "id")
|
||||
private Long id;
|
||||
|
||||
@Column(name = "id_pelanggan_no_meter")
|
||||
private Long id_pelanggan_no_meter;
|
||||
|
||||
@ManyToOne(fetch = FetchType.EAGER)
|
||||
@JoinColumn(name = "id_ulp", foreignKey = @ForeignKey(name = "id_ulp"))
|
||||
private Ulp ulp;
|
||||
@Column(name = "id_tipe_permasalahan")
|
||||
private Long id_tipe_permasalahan;
|
||||
|
||||
@Column(name = "alamat_pelanggan")
|
||||
private String alamat_pelanggan;
|
||||
|
||||
@Column(name = "daya_tarif")
|
||||
private String daya_tarif;
|
||||
|
||||
@Column(name = "nama_pelapor")
|
||||
private String nama_pelapor;
|
||||
|
||||
@Column(name = "telepon_pelapor")
|
||||
private String telepon_pelapor;
|
||||
|
||||
@Column(name = "hp_pelapor")
|
||||
private String hp_pelapor;
|
||||
|
||||
@Column(name = "fax_pelapor")
|
||||
private String fax_pelapor;
|
||||
|
||||
@Column(name = "email_pelapor")
|
||||
private String email_pelapor;
|
||||
|
||||
@Column(name = "alamat_pelapor")
|
||||
private String alamat_pelapor;
|
||||
|
||||
@Column(name = "media")
|
||||
private String media;
|
||||
|
||||
@Column(name = "waktu_padam")
|
||||
private String waktu_padam;
|
||||
|
||||
@Column(name = "konfirmasi")
|
||||
private String konfirmasi;
|
||||
|
||||
@JsonbTypeAdapter(GeometryAdapter.class)
|
||||
@Column(name = "lokasi", columnDefinition = "geometry(Point,4326)")
|
||||
private Geometry lokasi;
|
||||
|
||||
@Column(name = "no_laporan", unique = true)
|
||||
private String no_laporan;
|
||||
|
||||
@Column(name = "keterangan")
|
||||
private String keterangan;
|
||||
|
||||
@Column(name = "created_date")
|
||||
private LocalDateTime created_date;
|
||||
|
||||
@Column(name = "created_by")
|
||||
private Long created_by;
|
||||
|
||||
@Column(name = "updated_date")
|
||||
private LocalDateTime updated_date;
|
||||
|
||||
@Column(name = "updated_by")
|
||||
private Long updated_by;
|
||||
|
||||
@Column(name = "status_akhir")
|
||||
private String status_akhir;
|
||||
|
||||
@Column(name = "tipe_wo")
|
||||
private Long tipe_wo;
|
||||
|
||||
@Column(name = "unit")
|
||||
private Long unit;
|
||||
|
||||
@Column(name = "eskalasi")
|
||||
private Long eskalasi;
|
||||
|
||||
@Column(name = "permasalahan")
|
||||
private String permasalahan;
|
||||
|
||||
@Column(name = "waktu_lapor")
|
||||
private LocalDateTime waktu_lapor;
|
||||
|
||||
@Column(name = "waktu_penugasan")
|
||||
private LocalDateTime waktu_penugasan;
|
||||
|
||||
@Column(name = "waktu_perjalanan")
|
||||
private LocalDateTime waktu_perjalanan;
|
||||
|
||||
@Column(name = "waktu_pengerjaan")
|
||||
private LocalDateTime waktu_pengerjaan;
|
||||
|
||||
@Column(name = "waktu_nyala_sementara")
|
||||
private LocalDateTime waktu_nyala_sementara;
|
||||
|
||||
@Column(name = "waktu_nyala")
|
||||
private LocalDateTime waktu_nyala;
|
||||
|
||||
@Column(name = "waktu_batal")
|
||||
private LocalDateTime waktu_batal;
|
||||
|
||||
@Column(name = "waktu_selesai")
|
||||
private LocalDateTime waktu_selesai;
|
||||
|
||||
@Column(name = "tipe_keluhan")
|
||||
private Long tipe_keluhan;
|
||||
|
||||
@Column(name = "tipe_sub_keluhan")
|
||||
private Long tipe_sub_keluhan;
|
||||
|
||||
@Column(name = "alasan")
|
||||
private String alasan;
|
||||
|
||||
@Column(name = "patokan")
|
||||
private String patokan;
|
||||
|
||||
@Column(name = "jarak")
|
||||
private Long jarak;
|
||||
|
||||
@ManyToOne(fetch = FetchType.EAGER)
|
||||
@JoinColumn(name = "id_kelurahan", referencedColumnName = "id_kelurahan", foreignKey = @ForeignKey(name = "kelurahan"))
|
||||
private MasterKelurahan kelurahan;
|
||||
|
||||
@ManyToOne(fetch = FetchType.EAGER)
|
||||
@JoinColumn(name = "id_regu", referencedColumnName = "id" )
|
||||
private MasterRegu regu;
|
||||
|
||||
@Column(name = "fax")
|
||||
private String fax;
|
||||
@Column(name = "keterangan_lokasi")
|
||||
private String keterangan_lokasi;
|
||||
@Column(name = "waktu_fax")
|
||||
private LocalDateTime waktu_fax;
|
||||
@Column(name = "nama_media")
|
||||
private String nama_media;
|
||||
@Column(name = "waktu_media")
|
||||
private LocalDateTime waktu_media;
|
||||
}
|
||||
@@ -0,0 +1,59 @@
|
||||
package org.sadigit.entity.transaksi;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
import io.quarkus.hibernate.orm.panache.PanacheEntityBase;
|
||||
import jakarta.persistence.Column;
|
||||
import jakarta.persistence.Entity;
|
||||
import jakarta.persistence.GeneratedValue;
|
||||
import jakarta.persistence.GenerationType;
|
||||
import jakarta.persistence.Id;
|
||||
import jakarta.persistence.JoinColumn;
|
||||
import jakarta.persistence.ManyToOne;
|
||||
import jakarta.persistence.Table;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.Setter;
|
||||
|
||||
@Entity
|
||||
@Setter
|
||||
@Getter
|
||||
@Table(name = "keluhan_lapor_ulang", schema = "apkt_transactional")
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class KeluhanLaporUlang extends PanacheEntityBase{
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||
@Column(name = "id", nullable = false)
|
||||
private Long id;
|
||||
|
||||
@ManyToOne
|
||||
@JoinColumn(name = "id_keluhan", nullable = false)
|
||||
private Keluhan keluhan;
|
||||
|
||||
@Column(name = "no_laporan_referensi", nullable = false)
|
||||
private String no_laporan_referensi;
|
||||
|
||||
@Column(name = "no_laporan_baru", nullable = false)
|
||||
private String no_laporan_baru;
|
||||
|
||||
@Column(name = "laporan_ke", nullable = false)
|
||||
private Long laporan_ke;
|
||||
|
||||
@Column(name = "created_date")
|
||||
private LocalDateTime created_date;
|
||||
|
||||
@Column(name = "created_by")
|
||||
private Long created_by;
|
||||
|
||||
@Column(name = "updated_date")
|
||||
private LocalDateTime updated_date;
|
||||
|
||||
@Column(name = "updated_by")
|
||||
private Long updated_by;
|
||||
|
||||
|
||||
|
||||
// Getters and Setters
|
||||
}
|
||||
@@ -0,0 +1,50 @@
|
||||
package org.sadigit.entity.transaksi;
|
||||
|
||||
import org.hibernate.annotations.Immutable;
|
||||
import org.sadigit.entity.SessionUser;
|
||||
|
||||
import io.quarkus.hibernate.orm.panache.PanacheEntityBase;
|
||||
import jakarta.persistence.*;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
@Entity
|
||||
@Setter
|
||||
@Getter
|
||||
@Table(name = "keluhan_transaksi", schema = "apkt_transactional")
|
||||
@Immutable
|
||||
public class KeluhanTransaksi extends PanacheEntityBase {
|
||||
|
||||
@Id
|
||||
@SequenceGenerator(name = "keluhan_transaksi_seq", sequenceName = "apkt_transactional.keluhan_transaksi_seq", allocationSize = 1)
|
||||
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "keluhan_transaksi_seq")
|
||||
@Column(name = "id")
|
||||
private Long id;
|
||||
|
||||
@ManyToOne
|
||||
@JoinColumn(name = "id_keluhan", nullable = false)
|
||||
private Keluhan keluhan;
|
||||
|
||||
@Column(name = "jenis", nullable = false)
|
||||
private String jenis;
|
||||
|
||||
@Column(name = "waktu")
|
||||
private LocalDateTime waktu;
|
||||
|
||||
@Column(name = "created_date", nullable = false)
|
||||
private LocalDateTime created_date;
|
||||
|
||||
@Column(name = "created_by", nullable = false)
|
||||
private Long created_by;
|
||||
|
||||
@ManyToOne
|
||||
@JoinColumn(name = "id_session")
|
||||
private SessionUser session;
|
||||
|
||||
@Column(name = "notif_flag", nullable = true)
|
||||
private Boolean notif_flag;
|
||||
|
||||
// Constructors, getters, setters, etc.
|
||||
}
|
||||
@@ -0,0 +1,60 @@
|
||||
package org.sadigit.entity.transaksi;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
import org.hibernate.annotations.Immutable;
|
||||
import org.locationtech.jts.geom.Geometry;
|
||||
import org.sadigit.adapter.GeometryAdapter;
|
||||
import org.sadigit.entity.referensi.Posko;
|
||||
|
||||
import io.quarkus.hibernate.orm.panache.PanacheEntity;
|
||||
import jakarta.json.bind.annotation.JsonbTypeAdapter;
|
||||
import jakarta.persistence.*;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
@Entity
|
||||
@Setter
|
||||
@Getter
|
||||
@Table(name = "master_regu", schema = "apkt_transactional")
|
||||
@Immutable
|
||||
public class MasterRegu extends PanacheEntity {
|
||||
@Column(name = "id")
|
||||
private Long id;
|
||||
|
||||
@ManyToOne(fetch = FetchType.EAGER, optional = false, cascade = CascadeType.ALL)
|
||||
@JoinColumn(name = "id_posko", referencedColumnName = "id")
|
||||
private Posko posko;
|
||||
|
||||
@Column(name = "nama", nullable = false)
|
||||
private String nama;
|
||||
|
||||
@Column(name = "kode", nullable = false)
|
||||
private String kode;
|
||||
|
||||
@Column(name = "alamat", nullable = false)
|
||||
private String alamat;
|
||||
|
||||
@Column(name = "telepon", nullable = false)
|
||||
private String telepon;
|
||||
|
||||
@Column(name = "aktif", nullable = false)
|
||||
private boolean aktif;
|
||||
|
||||
@JsonbTypeAdapter(GeometryAdapter.class)
|
||||
@Column(name = "lokasi", columnDefinition = "geometry(Point,4326)")
|
||||
private Geometry lokasi;
|
||||
|
||||
@Column(name = "created_date")
|
||||
private LocalDateTime created_date;
|
||||
|
||||
@Column(name = "created_by")
|
||||
private Long created_by;
|
||||
|
||||
@Column(name = "updated_date")
|
||||
private LocalDateTime updated_date;
|
||||
|
||||
@Column(name = "updated_by")
|
||||
private Long updated_by;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,63 @@
|
||||
package org.sadigit.entity.transaksi;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
import org.hibernate.annotations.Immutable;
|
||||
import org.sadigit.entity.referensi.Material;
|
||||
|
||||
import io.quarkus.hibernate.orm.panache.PanacheEntity;
|
||||
import jakarta.persistence.*;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
@Entity
|
||||
@Setter
|
||||
@Getter
|
||||
@Table(name = "material_transaksi", schema = "apkt_transactional")
|
||||
@Immutable
|
||||
public class MaterialTransaksi extends PanacheEntity {
|
||||
private Long id;
|
||||
|
||||
@ManyToOne
|
||||
@JoinColumn(name = "id_material", nullable = false)
|
||||
private Material material;
|
||||
|
||||
private Long stok;
|
||||
private Long stokOs;
|
||||
|
||||
@Enumerated(EnumType.STRING)
|
||||
@Column(nullable = false)
|
||||
private Tipe tipe;
|
||||
|
||||
private String noDokumen;
|
||||
private LocalDateTime createdDate;
|
||||
private Long createdBy;
|
||||
private LocalDateTime updatedDate;
|
||||
private Long updatedBy;
|
||||
|
||||
@ManyToOne
|
||||
@JoinColumn(name = "id_gangguan")
|
||||
private Gangguan gangguan;
|
||||
|
||||
private Long id_gangguan_tm;
|
||||
|
||||
public enum Tipe {
|
||||
IN("in"),
|
||||
OUT("out");
|
||||
|
||||
private String value;
|
||||
|
||||
Tipe(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
public String getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return value;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
package org.sadigit.entity.transaksi;
|
||||
|
||||
import java.sql.Timestamp;
|
||||
|
||||
import org.hibernate.annotations.CreationTimestamp;
|
||||
import org.hibernate.annotations.Immutable;
|
||||
import org.hibernate.annotations.UpdateTimestamp;
|
||||
import org.locationtech.jts.geom.Geometry;
|
||||
import org.sadigit.adapter.GeometryAdapter;
|
||||
|
||||
import io.quarkus.hibernate.orm.panache.PanacheEntity;
|
||||
import jakarta.json.bind.annotation.JsonbTypeAdapter;
|
||||
import jakarta.persistence.*;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
@Entity
|
||||
@Setter
|
||||
@Getter
|
||||
@Table(name = "pelanggan_no_meter", schema = "apkt_transactional")
|
||||
@Immutable
|
||||
public class PelangganNoMeter extends PanacheEntity {
|
||||
|
||||
@Column(name = "id")
|
||||
private Long id;
|
||||
|
||||
@Column(name = "nama", nullable = false)
|
||||
private String nama;
|
||||
|
||||
@Column(name = "no_meter", nullable = false)
|
||||
private String no_meter;
|
||||
|
||||
@Column(name = "alamat")
|
||||
private String alamat;
|
||||
|
||||
@Column(name = "daya")
|
||||
private String daya;
|
||||
|
||||
@JsonbTypeAdapter(GeometryAdapter.class)
|
||||
@Column(name = "lokasi", columnDefinition = "geometry(Point,4326)")
|
||||
private Geometry lokasi;
|
||||
|
||||
@CreationTimestamp
|
||||
@Column(name = "created_date")
|
||||
private Timestamp created_date;
|
||||
|
||||
@Column(name = "created_by")
|
||||
private Long created_by;
|
||||
@UpdateTimestamp
|
||||
@Column(name = "updated_date")
|
||||
private Timestamp updated_date;
|
||||
|
||||
@Column(name = "updated_by")
|
||||
private Long updated_by;
|
||||
|
||||
@Column(name = "id_pelanggan")
|
||||
private Long id_pelanggan;
|
||||
|
||||
@Column(name = "telepon")
|
||||
private String telepon;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,103 @@
|
||||
package org.sadigit.entity.transaksi;
|
||||
|
||||
import jakarta.persistence.*;
|
||||
import java.math.BigDecimal;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
import io.quarkus.hibernate.orm.panache.PanacheEntityBase;
|
||||
|
||||
@Entity
|
||||
@Table(name = "penugasan_khusus_belum_selesai", schema = "apkt_transactional")
|
||||
public class PenugasanKhusus extends PanacheEntityBase {
|
||||
|
||||
@Id
|
||||
@Column(name = "rowid", nullable = false)
|
||||
private Long id;
|
||||
|
||||
@Column(name = "no_tugas", length = 20)
|
||||
private String no_tugas;
|
||||
|
||||
@Column(name = "tglcatat")
|
||||
private LocalDateTime tglcatat;
|
||||
|
||||
@Column(name = "nama_tugas", length = 50)
|
||||
private String nama_tugas;
|
||||
|
||||
@Column(name = "keterangan", length = 100)
|
||||
private String keterangan;
|
||||
|
||||
@Column(name = "reguid")
|
||||
private BigDecimal reguid;
|
||||
|
||||
@Column(name = "nama_regu", length = 200)
|
||||
private String nama_regu;
|
||||
|
||||
@Column(name = "flag_selesai")
|
||||
private BigDecimal flag_selesai;
|
||||
|
||||
@Column(name = "tglflag_selesai")
|
||||
private LocalDateTime tglflag_selesai;
|
||||
|
||||
@Column(name = "upi")
|
||||
private BigDecimal upi;
|
||||
|
||||
@Column(name = "ap")
|
||||
private BigDecimal ap;
|
||||
|
||||
@Column(name = "up")
|
||||
private BigDecimal up;
|
||||
|
||||
@Column(name = "posko")
|
||||
private BigDecimal posko;
|
||||
|
||||
@Column(name = "no_laporan", length = 20)
|
||||
private String no_laporan;
|
||||
|
||||
@Column(name = "catatby")
|
||||
private BigDecimal catatby;
|
||||
|
||||
@Column(name = "laststatus", length = 50)
|
||||
private String laststatus;
|
||||
|
||||
@Column(name = "tglpenugasan")
|
||||
private LocalDateTime tglpenugasan;
|
||||
|
||||
@Column(name = "penugasanby")
|
||||
private BigDecimal penugasanby;
|
||||
|
||||
@Column(name = "tglperjalanan")
|
||||
private LocalDateTime tglperjalanan;
|
||||
|
||||
@Column(name = "perjalananby")
|
||||
private BigDecimal perjalananby;
|
||||
|
||||
@Column(name = "tglpengerjaan")
|
||||
private LocalDateTime tglpengerjaan;
|
||||
|
||||
@Column(name = "pengerjaanby")
|
||||
private BigDecimal pengerjaanby;
|
||||
|
||||
@Column(name = "tglnyala")
|
||||
private LocalDateTime tglnyala;
|
||||
|
||||
@Column(name = "nyalaby")
|
||||
private BigDecimal nyalaby;
|
||||
|
||||
@Column(name = "selesaiby")
|
||||
private BigDecimal selesaiby;
|
||||
|
||||
@Column(name = "tglnyalasementara")
|
||||
private LocalDateTime tglnyalasementara;
|
||||
|
||||
@Column(name = "nyalasementaraby")
|
||||
private BigDecimal nyalasementaraby;
|
||||
|
||||
@Column(name = "keterangan_selesai")
|
||||
private String keteranganSelesai;
|
||||
|
||||
@Column(name = "catatbyvcc")
|
||||
private BigDecimal catatbyvcc;
|
||||
|
||||
@Column(name = "selesaibyvcc")
|
||||
private BigDecimal selesaibyvcc;
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
package org.sadigit.entity.transaksi;
|
||||
|
||||
import jakarta.persistence.*;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
import io.quarkus.hibernate.orm.panache.PanacheEntityBase;
|
||||
|
||||
@Entity
|
||||
@Setter
|
||||
@Getter
|
||||
@Table(name = "runtask", schema = "apkt_transactional")
|
||||
public class RunTask extends PanacheEntityBase implements Serializable {
|
||||
@Id
|
||||
@Column(name = "runtaskid", nullable = false)
|
||||
private Long runtaskid;
|
||||
|
||||
@Column(name = "runworkflowid")
|
||||
private Long runworkflowid;
|
||||
|
||||
@Column(name = "workflowdetail")
|
||||
private Long workflowdetail;
|
||||
|
||||
@Column(name = "runtaskfrom")
|
||||
private Long runtaskfrom;
|
||||
|
||||
@Column(name = "isdone", length = 1)
|
||||
private String isdone;
|
||||
|
||||
@Column(name = "createdate")
|
||||
private LocalDateTime createdate;
|
||||
|
||||
@Column(name = "createby")
|
||||
private Long createby;
|
||||
|
||||
@Column(name = "updatedate")
|
||||
private LocalDateTime updatedate;
|
||||
|
||||
@Column(name = "updateby")
|
||||
private Long updateby;
|
||||
|
||||
@Column(name = "STATUS", length = 50)
|
||||
private String STATUS;
|
||||
|
||||
@Column(name = "statustype", length = 50)
|
||||
private String statustype;
|
||||
|
||||
@Column(name = "COMMENTS")
|
||||
private String COMMENTS;
|
||||
|
||||
@Column(name = "filtergroup", length = 200)
|
||||
private String filtergroup;
|
||||
|
||||
@Column(name = "ordernumber")
|
||||
private Long ordernumber;
|
||||
|
||||
// Constructors, getters, and setters...
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
package org.sadigit.entity.transaksi;
|
||||
|
||||
import jakarta.persistence.*;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
import io.quarkus.hibernate.orm.panache.PanacheEntityBase;
|
||||
|
||||
@Entity
|
||||
@Setter
|
||||
@Getter
|
||||
@Table(name = "runworkflow", schema = "apkt_transactional")
|
||||
public class RunWorkflow extends PanacheEntityBase implements Serializable {
|
||||
|
||||
@Id
|
||||
@Column(name = "runworkflowid", nullable = false)
|
||||
private Long runworkflowid;
|
||||
|
||||
@Column(name = "workflowid")
|
||||
private Long workflowid;
|
||||
|
||||
@Column(name = "requestby")
|
||||
private Long requestby;
|
||||
|
||||
@Column(name = "lastworkflowdetailid")
|
||||
private Long lastworkflowdetailid;
|
||||
|
||||
@Column(name = "laststatus", length = 50)
|
||||
private String laststatus;
|
||||
|
||||
@Column(name = "laststatustype", length = 50)
|
||||
private String laststatustype;
|
||||
|
||||
@Column(name = "createdate")
|
||||
private LocalDateTime createdate;
|
||||
|
||||
@Column(name = "rowid", nullable = false, columnDefinition = "INT8 NOT VISIBLE DEFAULT unique_rowid()")
|
||||
private Long rowid;
|
||||
|
||||
// Constructors, getters, and setters...
|
||||
}
|
||||
Reference in New Issue
Block a user