inisialisasi kembali
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
package org.sadigit.entity.referensi;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
import org.hibernate.annotations.Immutable;
|
||||
|
||||
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 = "cuaca", schema = "apkt_transactional")
|
||||
@Immutable
|
||||
public class Cuaca 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,39 @@
|
||||
package org.sadigit.entity.referensi;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
import org.hibernate.annotations.Immutable;
|
||||
|
||||
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 = "dampak", schema = "apkt_transactional")
|
||||
@Immutable
|
||||
|
||||
public class Dampak 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,40 @@
|
||||
package org.sadigit.entity.referensi;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
import org.hibernate.annotations.Immutable;
|
||||
|
||||
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 = "equipment", schema = "apkt_transactional")
|
||||
@Immutable
|
||||
|
||||
public class Equipment 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,46 @@
|
||||
package org.sadigit.entity.referensi;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
import org.hibernate.annotations.Immutable;
|
||||
|
||||
import io.quarkus.hibernate.orm.panache.PanacheEntity;
|
||||
import jakarta.persistence.CascadeType;
|
||||
import jakarta.persistence.Column;
|
||||
import jakarta.persistence.Entity;
|
||||
import jakarta.persistence.FetchType;
|
||||
import jakarta.persistence.JoinColumn;
|
||||
import jakarta.persistence.ManyToOne;
|
||||
import jakarta.persistence.Table;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
@Entity
|
||||
@Setter
|
||||
@Getter
|
||||
@Table(name = "fasilitas", schema = "apkt_transactional")
|
||||
@Immutable
|
||||
|
||||
public class Fasilitas 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;
|
||||
|
||||
@JoinColumn(name = "id_kelompok", referencedColumnName = "id", nullable = false)
|
||||
@ManyToOne(fetch = FetchType.EAGER, optional = false, cascade = CascadeType.ALL)
|
||||
private Kelompok Kelompok;
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
package org.sadigit.entity.referensi;
|
||||
|
||||
import java.time.LocalDate;
|
||||
|
||||
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.Table;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
@Entity
|
||||
@Setter
|
||||
@Getter
|
||||
@Table(name = "grup_penyebab_gangguan", schema = "apkt_transactional")
|
||||
@Immutable
|
||||
|
||||
public class GrupPenyebabGangguan extends PanacheEntityBase {
|
||||
@Id
|
||||
|
||||
@Column(name = "id")
|
||||
private Long id;
|
||||
|
||||
@Column(name = "nama", nullable = false)
|
||||
private String nama;
|
||||
|
||||
@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,38 @@
|
||||
package org.sadigit.entity.referensi;
|
||||
|
||||
import io.quarkus.hibernate.orm.panache.PanacheEntity;
|
||||
import java.time.LocalDate;
|
||||
|
||||
import jakarta.persistence.Column;
|
||||
import jakarta.persistence.Entity;
|
||||
import jakarta.persistence.Table;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
@Entity
|
||||
@Setter
|
||||
@Getter
|
||||
@Table(name = "kota_kabupaten", schema = "apkt_transactional")
|
||||
public class Kabupaten extends PanacheEntity {
|
||||
@Column(name = "id")
|
||||
private Long id;
|
||||
|
||||
@Column(name = "id_provinsi")
|
||||
private Long id_provinsi;
|
||||
|
||||
@Column(name = "nama")
|
||||
private String nama;
|
||||
|
||||
@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,38 @@
|
||||
package org.sadigit.entity.referensi;
|
||||
|
||||
import java.time.LocalDate;
|
||||
|
||||
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 = "kecamatan", schema = "apkt_transactional")
|
||||
public class Kecamatan extends PanacheEntity {
|
||||
@Column(name = "id")
|
||||
private Long id;
|
||||
|
||||
@Column(name = "id_kota_kabupaten")
|
||||
private Long id_kota_kabupaten;
|
||||
|
||||
@Column(name = "nama")
|
||||
private String nama;
|
||||
|
||||
@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,46 @@
|
||||
package org.sadigit.entity.referensi;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
import org.hibernate.annotations.Immutable;
|
||||
|
||||
import io.quarkus.hibernate.orm.panache.PanacheEntity;
|
||||
import jakarta.persistence.CascadeType;
|
||||
import jakarta.persistence.Column;
|
||||
import jakarta.persistence.Entity;
|
||||
import jakarta.persistence.FetchType;
|
||||
import jakarta.persistence.JoinColumn;
|
||||
import jakarta.persistence.ManyToOne;
|
||||
import jakarta.persistence.Table;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
@Entity
|
||||
@Setter
|
||||
@Getter
|
||||
@Table(name = "kelompok", schema = "apkt_transactional")
|
||||
@Immutable
|
||||
public class Kelompok 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;
|
||||
|
||||
@JoinColumn(name = "id_kelompok", referencedColumnName = "id", nullable = false)
|
||||
@ManyToOne(fetch = FetchType.EAGER, optional = false, cascade = CascadeType.ALL)
|
||||
private KelompokUtama kelompokUtama;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
package org.sadigit.entity.referensi;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
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.Table;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
@Entity
|
||||
@Setter
|
||||
@Getter
|
||||
@Table(name = "kelompok_utama", schema = "apkt_transactional")
|
||||
@Immutable
|
||||
|
||||
public class KelompokUtama extends PanacheEntityBase {
|
||||
@Id
|
||||
@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,40 @@
|
||||
package org.sadigit.entity.referensi;
|
||||
|
||||
import io.quarkus.hibernate.orm.panache.PanacheEntity;
|
||||
|
||||
import java.time.LocalDate;
|
||||
|
||||
import jakarta.persistence.Column;
|
||||
import jakarta.persistence.Entity;
|
||||
import jakarta.persistence.Table;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
@Entity
|
||||
@Setter
|
||||
@Getter
|
||||
@Table(name = "kelurahan", schema = "apkt_transactional")
|
||||
|
||||
public class Kelurahan extends PanacheEntity {
|
||||
@Column(name = "id")
|
||||
private Long id;
|
||||
|
||||
@Column(name = "id_kecamatan")
|
||||
private Long id_kecamatan;
|
||||
|
||||
@Column(name = "nama")
|
||||
private String nama;
|
||||
|
||||
@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,58 @@
|
||||
package org.sadigit.entity.referensi;
|
||||
|
||||
import jakarta.persistence.*;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
import org.hibernate.annotations.Immutable;
|
||||
|
||||
import io.quarkus.hibernate.orm.panache.PanacheEntityBase;
|
||||
|
||||
@Entity
|
||||
@Setter
|
||||
@Getter
|
||||
@Table(name = "master_kelurahan", schema = "apkt_transactional")
|
||||
@Immutable
|
||||
public class MasterKelurahan extends PanacheEntityBase implements Serializable {
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||
@Column(name = "id_kelurahan", nullable = false)
|
||||
private Long id_kelurahan;
|
||||
|
||||
@Column(name = "nama_kelurahan", nullable = false)
|
||||
private String nama_kelurahan;
|
||||
|
||||
@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 = "id_kecamatan")
|
||||
private Long id_kecamatan;
|
||||
|
||||
@Column(name = "nama_kecamatan")
|
||||
private String nama_kecamatan;
|
||||
|
||||
@Column(name = "id_kota")
|
||||
private Long id_kota;
|
||||
|
||||
@Column(name = "nama_kota")
|
||||
private String nama_kota;
|
||||
|
||||
@Column(name = "id_provinsi")
|
||||
private Long id_provinsi;
|
||||
|
||||
@Column(name = "nama_provinsi")
|
||||
private String nama_provinsi;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,52 @@
|
||||
package org.sadigit.entity.referensi;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
import io.quarkus.hibernate.orm.panache.PanacheEntity;
|
||||
import jakarta.persistence.Column;
|
||||
import jakarta.persistence.Entity;
|
||||
import jakarta.persistence.JoinColumn;
|
||||
import jakarta.persistence.ManyToOne;
|
||||
import jakarta.persistence.Table;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
@Entity
|
||||
@Setter
|
||||
@Getter
|
||||
@Table(name = "material", schema = "apkt_transactional")
|
||||
public class Material 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;
|
||||
@Column(name = "stok")
|
||||
private Long stok;
|
||||
|
||||
@Column(name = "stok_os")
|
||||
private Long stok_os;
|
||||
|
||||
@Column(name = "satuan")
|
||||
private String satuan;
|
||||
@Column(name = "merk")
|
||||
private String merk;
|
||||
@Column(name = "tahun_manufaktur")
|
||||
private String tahun_manufaktur;
|
||||
|
||||
@ManyToOne
|
||||
@JoinColumn(name = "id_posko", referencedColumnName = "id")
|
||||
private Posko posko;
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
package org.sadigit.entity.referensi;
|
||||
|
||||
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.Table;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
@Entity
|
||||
@Setter
|
||||
@Getter
|
||||
@Table(name = "media", schema = "apkt_transactional")
|
||||
@Immutable
|
||||
public class Media extends PanacheEntityBase {
|
||||
@Id
|
||||
@Column(name = "kode", nullable = false)
|
||||
private Long kode;
|
||||
|
||||
@Column(name = "keterangan", length = 100)
|
||||
private String keterangan;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
package org.sadigit.entity.referensi;
|
||||
|
||||
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.Table;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
@Entity
|
||||
@Setter
|
||||
@Getter
|
||||
@Table(name = "master_merk_meter", schema = "apkt_transactional")
|
||||
public class MerkMeter extends PanacheEntityBase {
|
||||
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||
@Column(name = "id", nullable = false)
|
||||
private Long id;
|
||||
|
||||
@Column(name = "merk_meter", length = 50)
|
||||
private String merk_meter;
|
||||
|
||||
@Column(name = "keterangan", length = 500)
|
||||
private String keterangan;
|
||||
|
||||
@Column(name = "flag", length = 1)
|
||||
private Character flag;
|
||||
|
||||
@Column(name = "tipe_meter", length = 50)
|
||||
private String tipe_meter;
|
||||
|
||||
@Column(name = "no_pabrik")
|
||||
private Long no_pabrik;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
package org.sadigit.entity.referensi;
|
||||
|
||||
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 = "penyebab_gangguan", schema = "apkt_transactional")
|
||||
public class PenyebabGangguan 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,73 @@
|
||||
package org.sadigit.entity.referensi;
|
||||
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
import java.sql.Timestamp;
|
||||
import org.hibernate.annotations.Immutable;
|
||||
|
||||
import io.quarkus.hibernate.orm.panache.PanacheEntity;
|
||||
import io.quarkus.runtime.annotations.RegisterForReflection;
|
||||
import jakarta.persistence.*;
|
||||
|
||||
@Entity
|
||||
@Getter
|
||||
@Setter
|
||||
@Immutable
|
||||
@Table(name = "master_posko", schema = "apkt_transactional")
|
||||
@RegisterForReflection
|
||||
public class Posko extends PanacheEntity {
|
||||
|
||||
@Column(name = "id")
|
||||
private Long id;
|
||||
|
||||
@JoinColumn(name = "id_ulp", referencedColumnName = "id", nullable = false)
|
||||
@ManyToOne(fetch = FetchType.EAGER, optional = false, cascade = CascadeType.ALL)
|
||||
private Ulp ulp;
|
||||
|
||||
@Column(name = "nama")
|
||||
private String nama;
|
||||
|
||||
@Column(name = "created_date")
|
||||
private Timestamp createdDate;
|
||||
|
||||
@Column(name = "created_by")
|
||||
private Long createdBy;
|
||||
|
||||
@Column(name = "updated_date")
|
||||
private Timestamp updatedDate;
|
||||
|
||||
@Column(name = "updated_by")
|
||||
private Long updatedBy;
|
||||
|
||||
@Column(name = "kode")
|
||||
private String kode;
|
||||
|
||||
@Column(name = "alamat")
|
||||
private String alamat;
|
||||
|
||||
@Column(name = "city")
|
||||
private String city;
|
||||
|
||||
@Column(name = "zip")
|
||||
private String zip;
|
||||
|
||||
@Column(name = "telepon")
|
||||
private String telepon;
|
||||
|
||||
@Column(name = "mobile")
|
||||
private String mobile;
|
||||
|
||||
@Column(name = "fax")
|
||||
private String fax;
|
||||
|
||||
@Column(name = "email")
|
||||
private String email;
|
||||
|
||||
@Column(name = "ipaddress")
|
||||
private String ipAddress;
|
||||
|
||||
@Column(name = "aktif", nullable = true)
|
||||
private Boolean aktif;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
package org.sadigit.entity.referensi;
|
||||
|
||||
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 = "prioritas", schema = "apkt_transactional")
|
||||
public class Prioritas 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,37 @@
|
||||
package org.sadigit.entity.referensi;
|
||||
|
||||
import java.time.LocalDate;
|
||||
|
||||
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 = "provinsi", schema = "apkt_transactional")
|
||||
public class Provinsi extends PanacheEntity {
|
||||
|
||||
@Column(name = "id")
|
||||
private Long id;
|
||||
|
||||
@Column(name = "nama_provinsi")
|
||||
private String nama_provinsi;
|
||||
|
||||
@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;
|
||||
|
||||
// Constructors, getters, setters, etc.
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
package org.sadigit.entity.referensi;
|
||||
|
||||
import lombok.Getter;
|
||||
import java.time.LocalDateTime;
|
||||
import org.hibernate.annotations.Immutable;
|
||||
|
||||
import io.quarkus.hibernate.orm.panache.PanacheEntity;
|
||||
import jakarta.persistence.Column;
|
||||
import jakarta.persistence.Entity;
|
||||
import jakarta.persistence.Table;
|
||||
|
||||
@Entity
|
||||
@Getter
|
||||
@Immutable
|
||||
@Table(name = "master_pulau", schema = "apkt_transactional")
|
||||
public class Pulau extends PanacheEntity {
|
||||
|
||||
@Column(name = "id")
|
||||
private Long id;
|
||||
|
||||
@Column(name = "nama", nullable = false)
|
||||
private String nama;
|
||||
|
||||
@Column(name = "created_date", nullable = false)
|
||||
private LocalDateTime createdDate;
|
||||
|
||||
@Column(name = "created_by", nullable = false)
|
||||
private Long createdBy;
|
||||
|
||||
@Column(name = "updated_date")
|
||||
private LocalDateTime updatedDate;
|
||||
|
||||
@Column(name = "updated_by")
|
||||
private Long updatedBy;
|
||||
|
||||
@Column(name = "kode", nullable = false)
|
||||
private String kode;
|
||||
|
||||
@Column(name = "aktif", nullable = false)
|
||||
private Boolean aktif;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
package org.sadigit.entity.referensi;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
import io.quarkus.hibernate.orm.panache.PanacheEntityBase;
|
||||
import jakarta.persistence.Column;
|
||||
import jakarta.persistence.Entity;
|
||||
import jakarta.persistence.Id;
|
||||
import jakarta.persistence.Table;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
@Entity
|
||||
@Setter
|
||||
@Getter
|
||||
@Table(name = "trm_ratingpln", schema = "apkt_transactional")
|
||||
public class RatingPln extends PanacheEntityBase {
|
||||
|
||||
@Id
|
||||
@Column(name = "no_laporan", length = 20, nullable = false)
|
||||
public String noLaporan;
|
||||
|
||||
@Column(name = "nilai", length = 5)
|
||||
public String nilai;
|
||||
|
||||
@Column(name = "status_nilai")
|
||||
public Long statusNilai;
|
||||
|
||||
@Column(name = "createdate")
|
||||
public LocalDateTime createDate;
|
||||
|
||||
@Column(name = "updatedate")
|
||||
public LocalDateTime updateDate;
|
||||
|
||||
@Column(name = "keterangan", length = 500)
|
||||
public String keterangan;
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
package org.sadigit.entity.referensi;
|
||||
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
import org.hibernate.annotations.Immutable;
|
||||
|
||||
import io.quarkus.hibernate.orm.panache.PanacheEntity;
|
||||
import jakarta.persistence.Column;
|
||||
import jakarta.persistence.Entity;
|
||||
import jakarta.persistence.Table;
|
||||
|
||||
@Entity
|
||||
@Getter
|
||||
@Setter
|
||||
@Immutable
|
||||
@Table(name = "master_regional", schema = "apkt_transactional")
|
||||
public class Regional extends PanacheEntity {
|
||||
|
||||
private Long id;
|
||||
|
||||
@Column(name = "nama")
|
||||
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,42 @@
|
||||
package org.sadigit.entity.referensi;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
import io.quarkus.hibernate.orm.panache.PanacheEntity;
|
||||
import jakarta.persistence.CascadeType;
|
||||
import jakarta.persistence.Column;
|
||||
import jakarta.persistence.Entity;
|
||||
import jakarta.persistence.FetchType;
|
||||
import jakarta.persistence.JoinColumn;
|
||||
import jakarta.persistence.ManyToOne;
|
||||
import jakarta.persistence.Table;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
@Entity
|
||||
@Setter
|
||||
@Getter
|
||||
@Table(name = "sub_fasilitas", schema = "apkt_transactional")
|
||||
public class SubFasilitas 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;
|
||||
|
||||
@JoinColumn(name = "id_fasilitas", referencedColumnName = "id", nullable = false)
|
||||
@ManyToOne(fetch = FetchType.EAGER, optional = false, cascade = CascadeType.ALL)
|
||||
private Fasilitas fasilitas;
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
package org.sadigit.entity.referensi;
|
||||
|
||||
import io.quarkus.hibernate.orm.panache.PanacheEntityBase;
|
||||
import jakarta.persistence.Column;
|
||||
import jakarta.persistence.Entity;
|
||||
import jakarta.persistence.FetchType;
|
||||
import jakarta.persistence.Id;
|
||||
import jakarta.persistence.JoinColumn;
|
||||
import jakarta.persistence.ManyToOne;
|
||||
import jakarta.persistence.Table;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
@Entity
|
||||
@Setter
|
||||
@Getter
|
||||
@Table(name = "subissuetype", schema = "apkt_transactional")
|
||||
public class SubTipeKeluhan extends PanacheEntityBase {
|
||||
@Id
|
||||
@Column(name = "subissuetypeid", nullable = false)
|
||||
private Long subissuetypeid;
|
||||
|
||||
@JoinColumn(name = "issuetypeid", referencedColumnName = "issuetypeid", insertable = false, updatable = false)
|
||||
@ManyToOne(optional = false, fetch = FetchType.EAGER)
|
||||
private TipeKeluhan tipeKeluhan;
|
||||
|
||||
@Column(name = "subissuetypename", length = 200)
|
||||
private String subissuetypename;
|
||||
|
||||
@Column(name = "projectid")
|
||||
private Long projectid;
|
||||
|
||||
@Column(name = "isactive", length = 1)
|
||||
private String isactive;
|
||||
|
||||
@Column(name = "description", length = 4000)
|
||||
private String description;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
package org.sadigit.entity.referensi;
|
||||
|
||||
import java.time.LocalDate;
|
||||
|
||||
import org.hibernate.annotations.Immutable;
|
||||
|
||||
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
|
||||
@Immutable
|
||||
@Table(name = "sub_tipe_permasalahan", schema = "apkt_transactional")
|
||||
public class SubTipePermasalahan extends PanacheEntity {
|
||||
|
||||
@Column(name = "id")
|
||||
private Long id;
|
||||
|
||||
@Column(name = "nama", nullable = false)
|
||||
private String nama;
|
||||
|
||||
@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,36 @@
|
||||
package org.sadigit.entity.referensi;
|
||||
|
||||
import io.quarkus.hibernate.orm.panache.PanacheEntityBase;
|
||||
import jakarta.persistence.Column;
|
||||
import jakarta.persistence.Entity;
|
||||
import jakarta.persistence.Id;
|
||||
import jakarta.persistence.Table;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.Setter;
|
||||
|
||||
@Entity
|
||||
@Getter
|
||||
@Setter
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@Table(name = "system_parameter", schema = "apkt_transactional")
|
||||
public class SystemParameter extends PanacheEntityBase{
|
||||
|
||||
@Id
|
||||
@Column(name = "id")
|
||||
private Long id;
|
||||
|
||||
@Column(name = "nama")
|
||||
private String nama;
|
||||
|
||||
@Column(name = "value")
|
||||
private String value;
|
||||
|
||||
@Column(name = "unit")
|
||||
private String unit;
|
||||
|
||||
@Column(name = "tipe")
|
||||
private String tipe;
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
package org.sadigit.entity.referensi;
|
||||
|
||||
import io.quarkus.hibernate.orm.panache.PanacheEntity;
|
||||
import jakarta.persistence.*;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
@Entity
|
||||
@Setter
|
||||
@Getter
|
||||
@Table(name = "tarif_daya", schema = "apkt_transactional")
|
||||
public class TarifDaya extends PanacheEntity {
|
||||
|
||||
@Column(name = "id", nullable = false)
|
||||
private Long id;
|
||||
|
||||
@Column(name = "tarif", nullable = false)
|
||||
private String tarif;
|
||||
|
||||
@Column(name = "daya", nullable = false)
|
||||
private Long daya;
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
package org.sadigit.entity.referensi;
|
||||
|
||||
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 = "tindakan", schema = "apkt_transactional")
|
||||
public class Tindakan 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,44 @@
|
||||
package org.sadigit.entity.referensi;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import io.quarkus.hibernate.orm.panache.PanacheEntityBase;
|
||||
import jakarta.persistence.CascadeType;
|
||||
import jakarta.persistence.Column;
|
||||
import jakarta.persistence.Entity;
|
||||
import jakarta.persistence.Id;
|
||||
import jakarta.persistence.JoinColumn;
|
||||
import jakarta.persistence.OneToMany;
|
||||
import jakarta.persistence.Table;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
@Entity
|
||||
@Setter
|
||||
@Getter
|
||||
@Table(name = "issuetype", schema = "apkt_transactional")
|
||||
public class TipeKeluhan extends PanacheEntityBase {
|
||||
@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;
|
||||
|
||||
@OneToMany(cascade = CascadeType.ALL, orphanRemoval = true)
|
||||
@JoinColumn(name = "issuetypeid")
|
||||
private List<SubTipeKeluhan> subTipeKeluhan;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
package org.sadigit.entity.referensi;
|
||||
|
||||
import java.time.LocalDate;
|
||||
import java.util.List;
|
||||
|
||||
import org.hibernate.annotations.Immutable;
|
||||
|
||||
import io.quarkus.hibernate.orm.panache.PanacheEntity;
|
||||
import jakarta.persistence.CascadeType;
|
||||
import jakarta.persistence.Column;
|
||||
import jakarta.persistence.Entity;
|
||||
import jakarta.persistence.JoinColumn;
|
||||
import jakarta.persistence.OneToMany;
|
||||
import jakarta.persistence.Table;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
@Entity
|
||||
@Setter
|
||||
@Getter
|
||||
@Immutable
|
||||
@Table(name = "tipe_permasalahan", schema = "apkt_transactional")
|
||||
public class TipePermasalahan extends PanacheEntity {
|
||||
|
||||
@Column(name = "id")
|
||||
private Long id;
|
||||
|
||||
@Column(name = "nama", nullable = false)
|
||||
private String nama;
|
||||
|
||||
@OneToMany(cascade = CascadeType.ALL, orphanRemoval = true)
|
||||
@JoinColumn(name = "id_tipe_permasalahan")
|
||||
private List<SubTipePermasalahan> subTipePermasalahan;
|
||||
|
||||
@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,107 @@
|
||||
package org.sadigit.entity.referensi;
|
||||
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.time.Instant;
|
||||
import org.hibernate.annotations.Immutable;
|
||||
|
||||
import io.quarkus.hibernate.orm.panache.PanacheEntity;
|
||||
import jakarta.persistence.CascadeType;
|
||||
import jakarta.persistence.Column;
|
||||
import jakarta.persistence.Entity;
|
||||
import jakarta.persistence.FetchType;
|
||||
import jakarta.persistence.JoinColumn;
|
||||
import jakarta.persistence.ManyToOne;
|
||||
import jakarta.persistence.Table;
|
||||
|
||||
@Entity
|
||||
@Getter
|
||||
@Setter
|
||||
@Immutable
|
||||
@Table(name = "master_uid", schema = "apkt_transactional")
|
||||
public class Uid extends PanacheEntity {
|
||||
|
||||
@Column(name = "id")
|
||||
private Long id;
|
||||
|
||||
@Column(name = "nama", nullable = false)
|
||||
private String nama;
|
||||
|
||||
@Column(name = "kode", nullable = false)
|
||||
private String kode;
|
||||
|
||||
// @Column(name = "location")
|
||||
// private String location;
|
||||
|
||||
@Column(name = "created_date", nullable = false)
|
||||
private Instant createdDate;
|
||||
|
||||
@Column(name = "created_by", nullable = false)
|
||||
private Long createdBy;
|
||||
|
||||
@Column(name = "updated_date")
|
||||
private Instant updatedDate;
|
||||
|
||||
@Column(name = "updated_by")
|
||||
private Long updatedBy;
|
||||
|
||||
@Column(name = "alamat")
|
||||
private String alamat;
|
||||
|
||||
@Column(name = "telepon")
|
||||
private String telepon;
|
||||
|
||||
@Column(name = "aktif", nullable = false)
|
||||
private Boolean aktif;
|
||||
|
||||
@Column(name = "unittypeid")
|
||||
private BigDecimal unittypeid;
|
||||
|
||||
@Column(name = "unitparent")
|
||||
private BigDecimal unitparent;
|
||||
|
||||
@Column(name = "city", length = 50)
|
||||
private String city;
|
||||
|
||||
@Column(name = "zip", length = 5)
|
||||
private String zip;
|
||||
|
||||
@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 = "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;
|
||||
|
||||
@Column(name = "id_pulau")
|
||||
private Long idPulau;
|
||||
|
||||
// @Column(name = "geom_point")
|
||||
// private String geomPoint;
|
||||
@ManyToOne(fetch = FetchType.EAGER, optional = true, cascade = CascadeType.ALL)
|
||||
@JoinColumn(name = "id_regional", nullable = true)
|
||||
private Regional regional;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,75 @@
|
||||
package org.sadigit.entity.referensi;
|
||||
|
||||
import java.sql.Timestamp;
|
||||
import org.hibernate.annotations.Immutable;
|
||||
|
||||
import io.quarkus.hibernate.orm.panache.PanacheEntity;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
import jakarta.persistence.CascadeType;
|
||||
import jakarta.persistence.Column;
|
||||
import jakarta.persistence.Entity;
|
||||
import jakarta.persistence.FetchType;
|
||||
import jakarta.persistence.JoinColumn;
|
||||
import jakarta.persistence.ManyToOne;
|
||||
import jakarta.persistence.Table;
|
||||
|
||||
@Entity
|
||||
@Getter
|
||||
@Setter
|
||||
@Immutable
|
||||
@Table(name = "master_ulp", schema = "apkt_transactional")
|
||||
public class Ulp extends PanacheEntity {
|
||||
|
||||
@Column(name = "id")
|
||||
private Long id;
|
||||
|
||||
@Column(name = "id_up3")
|
||||
private Long idUp3;
|
||||
|
||||
@Column(name = "nama")
|
||||
private String nama;
|
||||
|
||||
@Column(name = "kode", nullable = false)
|
||||
private String kode;
|
||||
|
||||
@Column(name = "alamat")
|
||||
private String alamat;
|
||||
|
||||
@Column(name = "created_date")
|
||||
private Timestamp created_date;
|
||||
|
||||
@Column(name = "created_by")
|
||||
private Long created_by;
|
||||
|
||||
@Column(name = "updated_date")
|
||||
private Timestamp updated_date;
|
||||
|
||||
@Column(name = "updated_by")
|
||||
private Long updated_by;
|
||||
|
||||
@Column(name = "telepon")
|
||||
private String telepon;
|
||||
|
||||
@Column(name = "aktif", nullable = true)
|
||||
private Boolean aktif;
|
||||
|
||||
@Column(name = "city")
|
||||
private String city;
|
||||
|
||||
@Column(name = "zip")
|
||||
private String zip;
|
||||
|
||||
@Column(name = "mobile")
|
||||
private String mobile;
|
||||
|
||||
@Column(name = "fax")
|
||||
private String fax;
|
||||
|
||||
@Column(name = "email")
|
||||
private String email;
|
||||
|
||||
@ManyToOne(fetch = FetchType.EAGER, optional = false, cascade = CascadeType.ALL)
|
||||
@JoinColumn(name = "id_up3", referencedColumnName = "id", insertable = false, updatable = false, nullable = true)
|
||||
private Up3 up3;
|
||||
}
|
||||
@@ -0,0 +1,83 @@
|
||||
package org.sadigit.entity.referensi;
|
||||
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
import java.time.Instant;
|
||||
import org.hibernate.annotations.Immutable;
|
||||
import org.locationtech.jts.geom.Geometry;
|
||||
import org.sadigit.adapter.GeometryAdapter;
|
||||
|
||||
import io.quarkus.hibernate.orm.panache.PanacheEntityBase;
|
||||
import jakarta.json.bind.annotation.JsonbTypeAdapter;
|
||||
import jakarta.persistence.CascadeType;
|
||||
import jakarta.persistence.Column;
|
||||
import jakarta.persistence.Entity;
|
||||
import jakarta.persistence.FetchType;
|
||||
import jakarta.persistence.Id;
|
||||
import jakarta.persistence.JoinColumn;
|
||||
import jakarta.persistence.ManyToOne;
|
||||
import jakarta.persistence.Table;
|
||||
|
||||
@Entity
|
||||
@Getter
|
||||
@Setter
|
||||
@Immutable
|
||||
@Table(name = "master_up3", schema = "apkt_transactional")
|
||||
public class Up3 extends PanacheEntityBase {
|
||||
@Id
|
||||
@Column(name = "id")
|
||||
public Long id;
|
||||
|
||||
@Column(name = "id_uid", nullable = false)
|
||||
public Long idUid;
|
||||
|
||||
@Column(name = "nama", nullable = false)
|
||||
public String nama;
|
||||
|
||||
@Column(name = "kode", nullable = false)
|
||||
public String kode;
|
||||
|
||||
@Column(name = "alamat", nullable = false)
|
||||
public String alamat;
|
||||
|
||||
@Column(name = "location")
|
||||
public String location;
|
||||
|
||||
@Column(name = "created_date", nullable = false)
|
||||
public Instant createdDate;
|
||||
|
||||
@Column(name = "created_by", nullable = false)
|
||||
public Long createdBy;
|
||||
|
||||
@Column(name = "updated_date")
|
||||
public Instant updatedDate;
|
||||
|
||||
@Column(name = "updated_by")
|
||||
public Long updatedBy;
|
||||
|
||||
@Column(name = "telepon", nullable = false)
|
||||
public String telepon;
|
||||
|
||||
@Column(name = "aktif", nullable = false)
|
||||
public Boolean aktif;
|
||||
|
||||
@JsonbTypeAdapter(GeometryAdapter.class)
|
||||
@Column(name = "geom_point", columnDefinition = "geometry(Point,4326)")
|
||||
private Geometry geomPoint;
|
||||
@Column(name = "city")
|
||||
public String city;
|
||||
|
||||
@Column(name = "zip")
|
||||
public String zip;
|
||||
|
||||
@Column(name = "fax")
|
||||
public String fax;
|
||||
|
||||
@Column(name = "email")
|
||||
public String email;
|
||||
|
||||
@ManyToOne(fetch = FetchType.EAGER, optional = false, cascade = CascadeType.ALL)
|
||||
@JoinColumn(name = "id_uid", referencedColumnName = "id", insertable = false, updatable = false)
|
||||
public Uid uid;
|
||||
}
|
||||
Reference in New Issue
Block a user