inisialisasi
This commit is contained in:
104
src/main/java/org/sadigit/entity/AppUser.java
Normal file
104
src/main/java/org/sadigit/entity/AppUser.java
Normal file
@@ -0,0 +1,104 @@
|
||||
package org.sadigit.entity;
|
||||
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
import java.sql.Timestamp;
|
||||
import java.util.List;
|
||||
|
||||
import org.hibernate.annotations.Immutable;
|
||||
|
||||
import io.quarkus.hibernate.orm.panache.PanacheEntityBase;
|
||||
import jakarta.persistence.Column;
|
||||
import jakarta.persistence.Entity;
|
||||
import jakarta.persistence.Id;
|
||||
import jakarta.persistence.JoinColumn;
|
||||
import jakarta.persistence.ManyToMany;
|
||||
import jakarta.persistence.ManyToOne;
|
||||
import jakarta.persistence.OneToMany;
|
||||
import jakarta.persistence.Table;
|
||||
|
||||
@Entity
|
||||
@Getter
|
||||
@Setter
|
||||
@Immutable
|
||||
@Table(name = "appuser", schema = "apkt_transactional")
|
||||
public class AppUser extends PanacheEntityBase {
|
||||
|
||||
@Id
|
||||
@Column(name = "userid", nullable = false)
|
||||
private Long userId;
|
||||
|
||||
@Column(name = "username", length = 200)
|
||||
private String username;
|
||||
|
||||
@Column(name = "employeename", length = 200)
|
||||
private String employeeName;
|
||||
|
||||
@Column(name = "nip", length = 200)
|
||||
private String nip;
|
||||
|
||||
@Column(name = "password", length = 200)
|
||||
private String password;
|
||||
|
||||
@Column(name = "address", length = 4000)
|
||||
private String address;
|
||||
|
||||
@Column(name = "phone", length = 20)
|
||||
private String phone;
|
||||
|
||||
@Column(name = "mobile", length = 20)
|
||||
private String mobile;
|
||||
|
||||
@Column(name = "email", length = 200)
|
||||
private String email;
|
||||
|
||||
@Column(name = "positionid")
|
||||
private Long positionId;
|
||||
|
||||
@Column(name = "unitid")
|
||||
private Long unitId;
|
||||
|
||||
@Column(name = "isactive", length = 255)
|
||||
private String isActive;
|
||||
|
||||
@Column(name = "islogin", length = 255)
|
||||
private String isLogin;
|
||||
|
||||
@Column(name = "passwordchangedate")
|
||||
private Timestamp passwordChangeDate;
|
||||
|
||||
@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 = "pukid")
|
||||
private Long pukId;
|
||||
|
||||
@Column(name = "pukanswer", length = 200)
|
||||
private String pukAnswer;
|
||||
|
||||
@Column(name = "defaulttab")
|
||||
private Long defaultTab;
|
||||
|
||||
@Column(name = "no_imei", length = 50)
|
||||
private String noImei;
|
||||
|
||||
@Column(name = "domain", length = 50)
|
||||
private String domain;
|
||||
|
||||
@Column(name = "picture")
|
||||
private String picture;
|
||||
|
||||
@OneToMany(mappedBy = "idUser")
|
||||
private List<UserRole> userRole;
|
||||
|
||||
}
|
||||
36
src/main/java/org/sadigit/entity/Issuetype.java
Normal file
36
src/main/java/org/sadigit/entity/Issuetype.java
Normal file
@@ -0,0 +1,36 @@
|
||||
package org.sadigit.entity;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.security.Timestamp;
|
||||
|
||||
import jakarta.persistence.Column;
|
||||
import jakarta.persistence.Entity;
|
||||
import jakarta.persistence.Id;
|
||||
import jakarta.persistence.Table;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
@Entity
|
||||
@Getter
|
||||
@Setter
|
||||
@Table(name = "issuetype", schema = "apkt_transactional")
|
||||
public class Issuetype {
|
||||
@Id
|
||||
@Column(name = "issuetypeid", nullable = false)
|
||||
private Long issueTypeId;
|
||||
|
||||
@Column(name = "issuetypecode", length = 10)
|
||||
private String issueTypeCode;
|
||||
|
||||
@Column(name = "issuetypename", length = 200)
|
||||
private String issueTypeName;
|
||||
|
||||
@Column(name = "projectid")
|
||||
private Long projectId;
|
||||
|
||||
@Column(name = "isactive", length = 1)
|
||||
private String isActive;
|
||||
|
||||
@Column(name = "description", length = 4000)
|
||||
private String description;
|
||||
}
|
||||
206
src/main/java/org/sadigit/entity/Keluhan.java
Normal file
206
src/main/java/org/sadigit/entity/Keluhan.java
Normal file
@@ -0,0 +1,206 @@
|
||||
package org.sadigit.entity;
|
||||
|
||||
import java.security.Timestamp;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
import org.locationtech.jts.geom.Geometry;
|
||||
import org.sadigit.adapter.GeometryAdapter;
|
||||
|
||||
import jakarta.json.bind.annotation.JsonbTypeAdapter;
|
||||
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.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
@Entity
|
||||
@Getter
|
||||
@Setter
|
||||
@Table(name = "keluhan", schema = "apkt_transactional")
|
||||
public class Keluhan {
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||
private Long id;
|
||||
|
||||
@Column(name = "id_pelanggan_no_meter")
|
||||
private Long idPelangganNoMeter;
|
||||
|
||||
@Column(name = "id_ulp")
|
||||
private Long idUlp;
|
||||
|
||||
@Column(name = "id_tipe_permasalahan")
|
||||
private Long idTipePermasalahan;
|
||||
|
||||
@Column(name = "alamat_pelanggan", length = 255)
|
||||
private String alamatPelanggan;
|
||||
|
||||
@Column(name = "nama_pelapor", length = 255)
|
||||
private String namaPelapor;
|
||||
|
||||
@Column(name = "telepon_pelapor", length = 255)
|
||||
private String teleponPelapor;
|
||||
|
||||
@Column(name = "hp_pelapor", length = 255)
|
||||
private String hpPelapor;
|
||||
|
||||
@Column(name = "fax_pelapor", length = 255)
|
||||
private String faxPelapor;
|
||||
|
||||
@Column(name = "email_pelapor", length = 255)
|
||||
private String emailPelapor;
|
||||
|
||||
@Column(name = "alamat_pelapor", length = 4000)
|
||||
private String alamatPelapor;
|
||||
|
||||
@Column(length = 255)
|
||||
private String media;
|
||||
|
||||
@Column(name = "waktu_padam", length = 255)
|
||||
private LocalDateTime waktuPadam;
|
||||
|
||||
@Column(length = 255)
|
||||
private String konfirmasi;
|
||||
|
||||
@JsonbTypeAdapter(GeometryAdapter.class)
|
||||
@Column(name = "lokasi", columnDefinition = "geometry(Point,4326)")
|
||||
private Geometry lokasi;
|
||||
|
||||
@Column(name = "no_laporan")
|
||||
private String noLaporan;
|
||||
|
||||
@Column(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;
|
||||
|
||||
@Column(name = "status_akhir", length = 50)
|
||||
private String statusAkhir;
|
||||
|
||||
@Column(name = "tipe_wo")
|
||||
private Long tipeWo;
|
||||
|
||||
private Long unit;
|
||||
|
||||
private Long eskalasi;
|
||||
|
||||
private String permasalahan;
|
||||
|
||||
@Column(name = "waktu_lapor")
|
||||
private LocalDateTime waktuLapor;
|
||||
|
||||
@Column(name = "id_regu")
|
||||
private Long idRegu;
|
||||
|
||||
@Column(name = "waktu_penugasan")
|
||||
private LocalDateTime waktuPenugasan;
|
||||
|
||||
@Column(name = "waktu_perjalanan")
|
||||
private LocalDateTime waktuPerjalanan;
|
||||
|
||||
@Column(name = "waktu_pengerjaan")
|
||||
private LocalDateTime waktuPengerjaan;
|
||||
|
||||
@Column(name = "waktu_nyala_sementara")
|
||||
private LocalDateTime waktuNyalaSementara;
|
||||
|
||||
@Column(name = "waktu_nyala")
|
||||
private LocalDateTime waktuNyala;
|
||||
|
||||
@Column(name = "waktu_batal")
|
||||
private LocalDateTime waktuBatal;
|
||||
|
||||
@Column(name = "waktu_selesai")
|
||||
private LocalDateTime waktuSelesai;
|
||||
|
||||
@Column(name = "tipe_keluhan")
|
||||
private Long tipeKeluhan;
|
||||
|
||||
@Column(name = "tipe_sub_keluhan")
|
||||
private Long tipeSubKeluhan;
|
||||
|
||||
private String alasan;
|
||||
|
||||
private String patokan;
|
||||
|
||||
private Long jarak;
|
||||
|
||||
@Column(name = "id_kelurahan")
|
||||
private Long idKelurahan;
|
||||
|
||||
private String fax;
|
||||
|
||||
@Column(name = "keterangan_lokasi")
|
||||
private String keteranganLokasi;
|
||||
|
||||
@Column(name = "waktu_fax")
|
||||
private LocalDateTime waktuFax;
|
||||
|
||||
@Column(name = "nama_media")
|
||||
private String namaMedia;
|
||||
|
||||
@Column(name = "waktu_media")
|
||||
private LocalDateTime waktuMedia;
|
||||
|
||||
@Column(name = "id_posko")
|
||||
private Long idPosko;
|
||||
|
||||
@Column(name = "respon_pelanggan")
|
||||
private String responPelanggan;
|
||||
|
||||
private String uraian;
|
||||
|
||||
private String pelaksana;
|
||||
|
||||
@Column(name = "id_tarif_daya")
|
||||
private Long idTarifDaya;
|
||||
|
||||
private String summary;
|
||||
|
||||
@Column(name = "jumlah_lapor")
|
||||
private Long jumlahLapor;
|
||||
|
||||
private String deskripsi;
|
||||
|
||||
@Column(name = "waktu_konfirmasi")
|
||||
private LocalDateTime waktuKonfirmasi;
|
||||
|
||||
@Column(name = "waktu_menunggu_tanggapan_supervisor")
|
||||
private LocalDateTime waktuMenungguTanggapanSupervisor;
|
||||
|
||||
@Column(name = "tindak_lanjut_penyelesaian")
|
||||
private String tindakLanjutPenyelesaian;
|
||||
|
||||
@Column(name = "no_lapor_pln")
|
||||
private String noLaporPln;
|
||||
|
||||
@Column(name = "no_tiket_crm")
|
||||
private String noTiketCrm;
|
||||
|
||||
@ManyToOne()
|
||||
@JoinColumn(name = "id_kelurahan", referencedColumnName = "id_kelurahan", insertable = false, updatable = false)
|
||||
private MasterKelurahan kelurahan;
|
||||
|
||||
@ManyToOne()
|
||||
@JoinColumn(name = "tipe_keluhan", referencedColumnName = "issuetypeid", insertable = false, updatable = false)
|
||||
private Issuetype issueType;
|
||||
|
||||
@ManyToOne()
|
||||
@JoinColumn(name = "tipe_sub_keluhan", referencedColumnName = "subissuetypeid", insertable = false, updatable = false)
|
||||
private SubIssueType subIssueType;
|
||||
|
||||
}
|
||||
59
src/main/java/org/sadigit/entity/MasterKelurahan.java
Normal file
59
src/main/java/org/sadigit/entity/MasterKelurahan.java
Normal file
@@ -0,0 +1,59 @@
|
||||
package org.sadigit.entity;
|
||||
|
||||
import java.security.Timestamp;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
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
|
||||
@Getter
|
||||
@Setter
|
||||
@Table(name = "master_kelurahan", schema = "apkt_transactional")
|
||||
public class MasterKelurahan {
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||
@Column(name = "id_kelurahan")
|
||||
private Long idKelurahan;
|
||||
|
||||
@Column(name = "nama_kelurahan", nullable = false)
|
||||
private String namaKelurahan;
|
||||
|
||||
@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(name = "id_kecamatan")
|
||||
private Long idKecamatan;
|
||||
|
||||
@Column(name = "nama_kecamatan")
|
||||
private String namaKecamatan;
|
||||
|
||||
@Column(name = "id_kota")
|
||||
private Long idKota;
|
||||
|
||||
@Column(name = "nama_kota")
|
||||
private String namaKota;
|
||||
|
||||
@Column(name = "id_provinsi")
|
||||
private Long idProvinsi;
|
||||
|
||||
@Column(name = "nama_provinsi")
|
||||
private String namaProvinsi;
|
||||
|
||||
private String status;
|
||||
}
|
||||
38
src/main/java/org/sadigit/entity/SubIssueType.java
Normal file
38
src/main/java/org/sadigit/entity/SubIssueType.java
Normal file
@@ -0,0 +1,38 @@
|
||||
package org.sadigit.entity;
|
||||
|
||||
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
|
||||
@Getter
|
||||
@Setter
|
||||
@Table(name = "subissuetype", schema = "apkt_transactional")
|
||||
|
||||
public class SubIssueType {
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||
@Column(name = "subissuetypeid", nullable = false)
|
||||
private Long subissuetypeid;
|
||||
|
||||
@Column(name = "issuetypeid", nullable = true)
|
||||
private Long issuetypeid;
|
||||
|
||||
@Column(name = "subissuetypename", length = 200, nullable = true)
|
||||
private String subissuetypename;
|
||||
|
||||
@Column(name = "projectid", nullable = true)
|
||||
private Long projectid;
|
||||
|
||||
@Column(name = "isactive", length = 1, nullable = true)
|
||||
private String isactive;
|
||||
|
||||
@Column(name = "description", length = 4000, nullable = true)
|
||||
private String description;
|
||||
|
||||
}
|
||||
87
src/main/java/org/sadigit/entity/Unit.java
Normal file
87
src/main/java/org/sadigit/entity/Unit.java
Normal file
@@ -0,0 +1,87 @@
|
||||
package org.sadigit.entity;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.security.Timestamp;
|
||||
|
||||
import jakarta.persistence.Column;
|
||||
import jakarta.persistence.Entity;
|
||||
import jakarta.persistence.Id;
|
||||
import jakarta.persistence.Table;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
@Entity
|
||||
@Getter
|
||||
@Setter
|
||||
@Table(name = "unit", schema = "apkt_transactional")
|
||||
public class Unit {
|
||||
@Id
|
||||
@Column(name = "unitid", nullable = false)
|
||||
private Long unitId;
|
||||
|
||||
@Column(name = "unitcode", length = 10)
|
||||
private String unitCode;
|
||||
|
||||
@Column(name = "unitname", length = 100)
|
||||
private String unitName;
|
||||
|
||||
@Column(name = "unittypeid")
|
||||
private Long unitTypeId;
|
||||
|
||||
@Column(name = "unitparent")
|
||||
private Long unitParent;
|
||||
|
||||
@Column(name = "address", length = 250)
|
||||
private String address;
|
||||
|
||||
@Column(name = "city", length = 50)
|
||||
private String city;
|
||||
|
||||
@Column(name = "zip", length = 5)
|
||||
private String zip;
|
||||
|
||||
@Column(name = "phone", length = 20)
|
||||
private String phone;
|
||||
|
||||
@Column(name = "mobile", length = 20)
|
||||
private String mobile;
|
||||
|
||||
@Column(name = "fax", length = 20)
|
||||
private String fax;
|
||||
|
||||
@Column(name = "email", length = 100)
|
||||
private String email;
|
||||
|
||||
@Column(name = "ipaddress", length = 15)
|
||||
private String ipAddress;
|
||||
|
||||
@Column(name = "createdate")
|
||||
private Timestamp createDate;
|
||||
|
||||
@Column(name = "createby")
|
||||
private BigDecimal createBy;
|
||||
|
||||
@Column(name = "updatedate")
|
||||
private Timestamp updateDate;
|
||||
|
||||
@Column(name = "updateby")
|
||||
private BigDecimal updateBy;
|
||||
|
||||
@Column(name = "isactive", length = 1)
|
||||
private String isActive;
|
||||
|
||||
@Column(name = "coordinator")
|
||||
private BigDecimal coordinator;
|
||||
|
||||
@Column(name = "supervisor")
|
||||
private BigDecimal supervisor;
|
||||
|
||||
@Column(name = "assistantmanager")
|
||||
private BigDecimal assistantManager;
|
||||
|
||||
@Column(name = "assmanphone", length = 20)
|
||||
private String assManPhone;
|
||||
|
||||
@Column(name = "vehiclecolor", length = 10)
|
||||
private String vehicleColor;
|
||||
}
|
||||
54
src/main/java/org/sadigit/entity/UserRole.java
Normal file
54
src/main/java/org/sadigit/entity/UserRole.java
Normal file
@@ -0,0 +1,54 @@
|
||||
package org.sadigit.entity;
|
||||
|
||||
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.ManyToMany;
|
||||
import jakarta.persistence.ManyToOne;
|
||||
import jakarta.persistence.Table;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
@Entity
|
||||
@Getter
|
||||
@Setter
|
||||
@Table(name = "user_role", schema = "apkt_transactional")
|
||||
public class UserRole extends PanacheEntityBase {
|
||||
@Id
|
||||
private Long id;
|
||||
|
||||
@Column(name = "id_user", nullable = false)
|
||||
private Long idUser;
|
||||
|
||||
@Column(name = "id_role", nullable = false)
|
||||
private Long idRole;
|
||||
|
||||
@Column(name = "start_date", nullable = false)
|
||||
private LocalDateTime startDate;
|
||||
|
||||
@Column(name = "end_date", nullable = false)
|
||||
private LocalDateTime endDate;
|
||||
|
||||
@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_user", referencedColumnName = "userid", insertable = false, updatable = false)
|
||||
AppUser appUser;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user