340 lines
9.4 KiB
Java
340 lines
9.4 KiB
Java
package com.jasamedika.medifirst2000.entities;
|
|
|
|
import javax.persistence.Column;
|
|
import javax.persistence.Entity;
|
|
import javax.persistence.FetchType;
|
|
import javax.persistence.GeneratedValue;
|
|
import javax.persistence.GenerationType;
|
|
import javax.persistence.Id;
|
|
import javax.persistence.JoinColumn;
|
|
import javax.persistence.ManyToOne;
|
|
import javax.persistence.Table;
|
|
import javax.validation.constraints.NotNull;
|
|
|
|
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
|
import com.jasamedika.medifirst2000.base.BaseMaster;
|
|
import com.jasamedika.medifirst2000.helper.Caption;
|
|
|
|
@Entity
|
|
@Table(name = "ChartOfAccount_M")
|
|
@JsonIgnoreProperties({ "hibernateLazyInitializer", "handler" })
|
|
public class ChartOfAccount extends BaseMaster {
|
|
|
|
@Caption(value = "Kode Account")
|
|
@NotNull(message = "Kd Account tidak boleh kosong")
|
|
@Column(name = "KdAccount", nullable = false)
|
|
private Integer kdAccount;
|
|
|
|
@Caption(value = "Kode Account Effect Add")
|
|
@Column(name = "KdAccountEffectAdd", nullable = true)
|
|
private Integer kdAccountEffectAdd;
|
|
|
|
@Caption(value = "Kode Account Effect Min")
|
|
@Column(name = "KdAccountEffectMin", nullable = true)
|
|
private Integer kdAccountEffectMin;
|
|
|
|
@ManyToOne(fetch = FetchType.LAZY)
|
|
@JoinColumn(name = "ObjectAccountHeadFk")
|
|
@Caption(value = "Object Account Head")
|
|
private ChartOfAccount accountHead;
|
|
|
|
@Column(name = "ObjectAccountHeadFk", insertable = false, updatable = false)
|
|
private Integer accountHeadId;
|
|
|
|
@ManyToOne(fetch = FetchType.LAZY)
|
|
@JoinColumn(name = "ObjectJenisAccountFk")
|
|
@NotNull(message = "Object Jenis Account Harus Diisi")
|
|
@Caption(value = "Object Jenis Account")
|
|
private JenisAccount jenisAccount;
|
|
|
|
@Column(name = "ObjectJenisAccountFk", insertable = false, updatable = false)
|
|
private Integer jenisAccountId;
|
|
|
|
@ManyToOne(fetch = FetchType.LAZY)
|
|
@JoinColumn(name = "ObjectKategoryAccountFk")
|
|
@NotNull(message = "Object Kategory Account Harus Diisi")
|
|
@Caption(value = "Object Kategory Account")
|
|
private KategoryAccount kategoryAccount;
|
|
|
|
@Column(name = "ObjectKategoryAccountFk", insertable = false, updatable = false)
|
|
private Integer kategoryAccountId;
|
|
|
|
@ManyToOne(fetch = FetchType.LAZY)
|
|
@JoinColumn(name = "ObjectStatusAccountFk")
|
|
@NotNull(message = "Object Status Account Harus Diisi")
|
|
@Caption(value = "Object Status Account")
|
|
private StatusAccount statusAccount;
|
|
|
|
@Column(name = "ObjectStatusAccountFk", insertable = false, updatable = false)
|
|
private Integer statusAccountId;
|
|
|
|
@ManyToOne(fetch = FetchType.LAZY)
|
|
@JoinColumn(name = "ObjectStrukturAccountFk")
|
|
@NotNull(message = "Object Struktur Account Harus Diisi")
|
|
@Caption(value = "Object Struktur Account")
|
|
private StrukturAccount strukturAccount;
|
|
|
|
@Column(name = "ObjectStrukturAccountFk", insertable = false, updatable = false)
|
|
private Integer strukturAccountId;
|
|
|
|
@Caption(value = "Nama Account")
|
|
@NotNull(message = "Nama Account tidak boleh kosong")
|
|
@Column(name = "NamaAccount", nullable = false, length = 300)
|
|
private String namaAccount;
|
|
|
|
@Caption(value = "No Account")
|
|
@NotNull(message = "No Account tidak boleh kosong")
|
|
@Column(name = "NoAccount", nullable = false, length = 50)
|
|
private String noAccount;
|
|
|
|
@Caption(value = "QAccount")
|
|
@NotNull(message = "QAccount tidak boleh kosong")
|
|
@Column(name = "QAccount", nullable = false)
|
|
private Integer qAccount;
|
|
|
|
@Caption(value = "Saldo Akhir D Tahun Berjalan")
|
|
@NotNull(message = "Saldo Akhir D Tahun Berjalan tidak boleh kosong")
|
|
@Column(name = "SaldoAkhirDTahunBerjalan", nullable = false)
|
|
private Double saldoAkhirDTahunBerjalan;
|
|
|
|
@Caption(value = "Saldo Akhir K Tahun Berjalan")
|
|
@NotNull(message = "Saldo Akhir K Tahun Berjalan tidak boleh kosong")
|
|
@Column(name = "SaldoAkhirKTahunBerjalan", nullable = false)
|
|
private Double saldoAkhirKTahunBerjalan;
|
|
|
|
@Caption(value = "Saldo Awal D Tahun Berjalan")
|
|
@NotNull(message = "Saldo Awal D Tahun Berjalan tidak boleh kosong")
|
|
@Column(name = "SaldoAwalDTahunBerjalan", nullable = false)
|
|
private Double saldoAwalDTahunBerjalan;
|
|
|
|
@Caption(value = "Saldo Awal K Tahun Berjalan")
|
|
@NotNull(message = "Saldo Awal K Tahun Berjalan tidak boleh kosong")
|
|
@Column(name = "SaldoAwalKTahunBerjalan", nullable = false)
|
|
private Double saldoAwalKTahunBerjalan;
|
|
|
|
@Caption(value = "Saldo Normal Add")
|
|
@NotNull(message = "Saldo Normal Add tidak boleh kosong")
|
|
@Column(name = "SaldoNormalAdd", nullable = false, length = 1)
|
|
private String saldoNormalAdd;
|
|
|
|
@Caption(value = "Saldo Normal Effect Add")
|
|
@Column(name = "SaldoNormalEffectAdd", nullable = true, length = 1)
|
|
private String saldoNormalEffectAdd;
|
|
|
|
@Caption(value = "Saldo Normal Effect Min")
|
|
@Column(name = "SaldoNormalEffectMin", nullable = true, length = 1)
|
|
private String saldoNormalEffectMin;
|
|
|
|
@Caption(value = "Saldo Normal Min")
|
|
@NotNull(message = "Saldo Normal Min tidak boleh kosong")
|
|
@Column(name = "SaldoNormalMin", nullable = false, length = 1)
|
|
private String saldoNormalMin;
|
|
|
|
public Integer getKdAccount() {
|
|
return kdAccount;
|
|
}
|
|
|
|
public void setKdAccount(Integer kdAccount) {
|
|
this.kdAccount = kdAccount;
|
|
}
|
|
|
|
public Integer getKdAccountEffectAdd() {
|
|
return kdAccountEffectAdd;
|
|
}
|
|
|
|
public void setKdAccountEffectAdd(Integer kdAccountEffectAdd) {
|
|
this.kdAccountEffectAdd = kdAccountEffectAdd;
|
|
}
|
|
|
|
public Integer getKdAccountEffectMin() {
|
|
return kdAccountEffectMin;
|
|
}
|
|
|
|
public void setKdAccountEffectMin(Integer kdAccountEffectMin) {
|
|
this.kdAccountEffectMin = kdAccountEffectMin;
|
|
}
|
|
|
|
public ChartOfAccount getAccountHead() {
|
|
return accountHead;
|
|
}
|
|
|
|
public void setAccountHead(ChartOfAccount accountHead) {
|
|
this.accountHead = accountHead;
|
|
}
|
|
|
|
public Integer getAccountHeadId() {
|
|
return accountHeadId;
|
|
}
|
|
|
|
public void setAccountHeadId(Integer accountHeadId) {
|
|
this.accountHeadId = accountHeadId;
|
|
}
|
|
|
|
public JenisAccount getJenisAccount() {
|
|
return jenisAccount;
|
|
}
|
|
|
|
public void setJenisAccount(JenisAccount jenisAccount) {
|
|
this.jenisAccount = jenisAccount;
|
|
}
|
|
|
|
public Integer getJenisAccountId() {
|
|
return jenisAccountId;
|
|
}
|
|
|
|
public void setJenisAccountId(Integer jenisAccountId) {
|
|
this.jenisAccountId = jenisAccountId;
|
|
}
|
|
|
|
public KategoryAccount getKategoryAccount() {
|
|
return kategoryAccount;
|
|
}
|
|
|
|
public void setKategoryAccount(KategoryAccount kategoryAccount) {
|
|
this.kategoryAccount = kategoryAccount;
|
|
}
|
|
|
|
public Integer getKategoryAccountId() {
|
|
return kategoryAccountId;
|
|
}
|
|
|
|
public void setKategoryAccountId(Integer kategoryAccountId) {
|
|
this.kategoryAccountId = kategoryAccountId;
|
|
}
|
|
|
|
public StatusAccount getStatusAccount() {
|
|
return statusAccount;
|
|
}
|
|
|
|
public void setStatusAccount(StatusAccount statusAccount) {
|
|
this.statusAccount = statusAccount;
|
|
}
|
|
|
|
public Integer getStatusAccountId() {
|
|
return statusAccountId;
|
|
}
|
|
|
|
public void setStatusAccountId(Integer statusAccountId) {
|
|
this.statusAccountId = statusAccountId;
|
|
}
|
|
|
|
public StrukturAccount getStrukturAccount() {
|
|
return strukturAccount;
|
|
}
|
|
|
|
public void setStrukturAccount(StrukturAccount strukturAccount) {
|
|
this.strukturAccount = strukturAccount;
|
|
}
|
|
|
|
public Integer getStrukturAccountId() {
|
|
return strukturAccountId;
|
|
}
|
|
|
|
public void setStrukturAccountId(Integer strukturAccountId) {
|
|
this.strukturAccountId = strukturAccountId;
|
|
}
|
|
|
|
public String getNamaAccount() {
|
|
return namaAccount;
|
|
}
|
|
|
|
public void setNamaAccount(String namaAccount) {
|
|
this.namaAccount = namaAccount;
|
|
}
|
|
|
|
public String getNoAccount() {
|
|
return noAccount;
|
|
}
|
|
|
|
public void setNoAccount(String noAccount) {
|
|
this.noAccount = noAccount;
|
|
}
|
|
|
|
public Integer getqAccount() {
|
|
return qAccount;
|
|
}
|
|
|
|
public void setqAccount(Integer qAccount) {
|
|
this.qAccount = qAccount;
|
|
}
|
|
|
|
public Double getSaldoAkhirDTahunBerjalan() {
|
|
return saldoAkhirDTahunBerjalan;
|
|
}
|
|
|
|
public void setSaldoAkhirDTahunBerjalan(Double saldoAkhirDTahunBerjalan) {
|
|
this.saldoAkhirDTahunBerjalan = saldoAkhirDTahunBerjalan;
|
|
}
|
|
|
|
public Double getSaldoAkhirKTahunBerjalan() {
|
|
return saldoAkhirKTahunBerjalan;
|
|
}
|
|
|
|
public void setSaldoAkhirKTahunBerjalan(Double saldoAkhirKTahunBerjalan) {
|
|
this.saldoAkhirKTahunBerjalan = saldoAkhirKTahunBerjalan;
|
|
}
|
|
|
|
public Double getSaldoAwalDTahunBerjalan() {
|
|
return saldoAwalDTahunBerjalan;
|
|
}
|
|
|
|
public void setSaldoAwalDTahunBerjalan(Double saldoAwalDTahunBerjalan) {
|
|
this.saldoAwalDTahunBerjalan = saldoAwalDTahunBerjalan;
|
|
}
|
|
|
|
public Double getSaldoAwalKTahunBerjalan() {
|
|
return saldoAwalKTahunBerjalan;
|
|
}
|
|
|
|
public void setSaldoAwalKTahunBerjalan(Double saldoAwalKTahunBerjalan) {
|
|
this.saldoAwalKTahunBerjalan = saldoAwalKTahunBerjalan;
|
|
}
|
|
|
|
public String getSaldoNormalAdd() {
|
|
return saldoNormalAdd;
|
|
}
|
|
|
|
public void setSaldoNormalAdd(String saldoNormalAdd) {
|
|
this.saldoNormalAdd = saldoNormalAdd;
|
|
}
|
|
|
|
public String getSaldoNormalEffectAdd() {
|
|
return saldoNormalEffectAdd;
|
|
}
|
|
|
|
public void setSaldoNormalEffectAdd(String saldoNormalEffectAdd) {
|
|
this.saldoNormalEffectAdd = saldoNormalEffectAdd;
|
|
}
|
|
|
|
public String getSaldoNormalEffectMin() {
|
|
return saldoNormalEffectMin;
|
|
}
|
|
|
|
public void setSaldoNormalEffectMin(String saldoNormalEffectMin) {
|
|
this.saldoNormalEffectMin = saldoNormalEffectMin;
|
|
}
|
|
|
|
public String getSaldoNormalMin() {
|
|
return saldoNormalMin;
|
|
}
|
|
|
|
public void setSaldoNormalMin(String saldoNormalMin) {
|
|
this.saldoNormalMin = saldoNormalMin;
|
|
}
|
|
|
|
@Id
|
|
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "public.chartofaccount_m_id_seq")
|
|
@javax.persistence.SequenceGenerator(name = "public.chartofaccount_m_id_seq", sequenceName = "public.chartofaccount_m_id_seq", allocationSize = 1)
|
|
@Column(name = "id")
|
|
protected Integer id;
|
|
|
|
public Integer getId() {
|
|
return id;
|
|
}
|
|
|
|
public void setId(Integer id) {
|
|
this.id = id;
|
|
}
|
|
|
|
}
|