Commit 8e711ff1 authored by neo's avatar neo

[dev] use jpa gen common project table for mysql and oracle

parent 8132c1ea
......@@ -4,10 +4,59 @@
<session-factory>
<property name="hibernate.dialect">org.hibernate.dialect.MySQL57Dialect</property>
<property name="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property>
<property name="hibernate.connection.url">jdbc:mysql://10.158.230.144:3306/tax_admin?useSSL=false</property>
<property name="hibernate.connection.username">root</property>
<property name="hibernate.connection.password">tax@Admin2018</property>
<property name="hibernate.connection.url">jdbc:mysql://10.158.230.144:3306/a1800002</property>
<property name="hibernate.connection.pool_size">1</property>
<property name="hibernate.show_sql">true</property>
<mapping class="pwc.taxtech.vat.entity.Account"/>
<mapping class="pwc.taxtech.vat.entity.AccountRemap"/>
<mapping class="pwc.taxtech.vat.entity.AccountRemapSum"/>
<mapping class="pwc.taxtech.vat.entity.AssetGroupResult"/>
<mapping class="pwc.taxtech.vat.entity.AssetsList"/>
<mapping class="pwc.taxtech.vat.entity.Balance"/>
<mapping class="pwc.taxtech.vat.entity.BalanceStd"/>
<mapping class="pwc.taxtech.vat.entity.BalanceStdManual"/>
<mapping class="pwc.taxtech.vat.entity.CompanyBalance"/>
<mapping class="pwc.taxtech.vat.entity.CustBalance"/>
<mapping class="pwc.taxtech.vat.entity.CustBalanceStd"/>
<mapping class="pwc.taxtech.vat.entity.CustBalanceStdManual"/>
<mapping class="pwc.taxtech.vat.entity.CustomsInvoice"/>
<mapping class="pwc.taxtech.vat.entity.EnterpriseAccount"/>
<mapping class="pwc.taxtech.vat.entity.EntriesCheckDetailResult"/>
<mapping class="pwc.taxtech.vat.entity.EntriesCheckResult"/>
<mapping class="pwc.taxtech.vat.entity.FormulaCache"/>
<mapping class="pwc.taxtech.vat.entity.GoodsMapping"/>
<mapping class="pwc.taxtech.vat.entity.ImportFile"/>
<mapping class="pwc.taxtech.vat.entity.IndexAnalysisDetailResult"/>
<mapping class="pwc.taxtech.vat.entity.IndexAnalysisResult"/>
<mapping class="pwc.taxtech.vat.entity.InputVatInvoice"/>
<mapping class="pwc.taxtech.vat.entity.InputVatInvoiceItem"/>
<mapping class="pwc.taxtech.vat.entity.InvoiceMapping"/>
<mapping class="pwc.taxtech.vat.entity.ModelBackFillAmount"/>
<mapping class="pwc.taxtech.vat.entity.ModelCategoryResult"/>
<mapping class="pwc.taxtech.vat.entity.ModelDetailLog"/>
<mapping class="pwc.taxtech.vat.entity.ModelLog"/>
<mapping class="pwc.taxtech.vat.entity.OperationLog"/>
<mapping class="pwc.taxtech.vat.entity.OutputVatInvoice"/>
<mapping class="pwc.taxtech.vat.entity.OutputVatInvoiceItem"/>
<mapping class="pwc.taxtech.vat.entity.PeriodCellReference"/>
<mapping class="pwc.taxtech.vat.entity.StandardAccount"/>
<mapping class="pwc.taxtech.vat.entity.ValidationInfo"/>
<mapping class="pwc.taxtech.vat.entity.Voucher"/>
<mapping class="pwc.taxtech.vat.entity.VoucherMain"/>
<mapping class="pwc.taxtech.vat.entity.VoucherMapping"/>
<mapping class="pwc.taxtech.vat.entity.CellComment"/>
<mapping class="pwc.taxtech.vat.entity.CellData"/>
<mapping class="pwc.taxtech.vat.entity.CellDataSource"/>
<mapping class="pwc.taxtech.vat.entity.DataSource"/>
<mapping class="pwc.taxtech.vat.entity.DataSourceDetail"/>
<mapping class="pwc.taxtech.vat.entity.ModifiedReportCell"/>
<mapping class="pwc.taxtech.vat.entity.PeriodCellTemplate"/>
<mapping class="pwc.taxtech.vat.entity.PeriodCellTemplateConfig"/>
<mapping class="pwc.taxtech.vat.entity.PeriodFormulaBlock"/>
<mapping class="pwc.taxtech.vat.entity.PeriodTaxPayerReportRule"/>
<mapping class="pwc.taxtech.vat.entity.PeriodTaxRuleSetting"/>
<mapping class="pwc.taxtech.vat.entity.PeriodTaxRuleSettingOrganization"/>
<mapping class="pwc.taxtech.vat.entity.PeriodTemplate"/>
<mapping class="pwc.taxtech.vat.entity.Report"/>
</session-factory>
</hibernate-configuration>
\ No newline at end of file
......@@ -2,23 +2,27 @@ package pwc.taxtech;
public class Const {
// oracle
public static final String DEF_BIG_STRING = "blob";
public static final String DEF_DEFAULT_DATE = "date default sysdate";
public static final String DEF_DEFAULT_STRING = "' '";
public static final String DEF_DEFAULT_NUMBER = "0";
public static final String DEF_DEFAULT_BIG_DECIMAL = "0.0";
public static final String B_Delimiter = "[";//begin
public static final String E_Delimiter = "]";//end
//mysql
// public static final String DEF_BIG_STRING = "text";
// public static final String DEF_DEFAULT_DATE = "datetime default CURRENT_TIMESTAMP";
// public static final String DEF_DEFAULT_STRING = "''";
// public static final String DEF_BIG_STRING = "blob";
// public static final String DEF_DEFAULT_DATE = "date default sysdate";
// public static final String DEF_DEFAULT_STRING = "' '";
// public static final String DEF_DEFAULT_NUMBER = "0";
// public static final String DEF_DEFAULT_BIG_DECIMAL = "0.0";
//
// public static final String B_Delimiter = "`";//begin
// public static final String E_Delimiter = "`";//end
// public static final String B_Delimiter = "[";//begin
// public static final String E_Delimiter = "]";//end
// public static final String PROJECT_SCHEMA = "tax_admin";
// public static final String PROJECT_ADMIN = "tax_admin";
//mysql
public static final String DEF_BIG_STRING = "text";
public static final String DEF_DEFAULT_DATE = "datetime default CURRENT_TIMESTAMP";
public static final String DEF_DEFAULT_STRING = "''";
public static final String DEF_DEFAULT_NUMBER = "0";
public static final String DEF_DEFAULT_BIG_DECIMAL = "0.0";
public static final String B_Delimiter = "`";//begin
public static final String E_Delimiter = "`";//end
public static final String PROJECT_SCHEMA = "test";
public static final String PROJECT_ADMIN = "test";
}
......@@ -13,7 +13,7 @@ import java.util.Objects;
import static pwc.taxtech.Const.*;
@Entity
@Table(name = "cell_template", schema = "tax_admin", catalog = "")
@Table(name = "cell_template", schema = PROJECT_ADMIN, catalog = "")
public class CellTemplate {
private long id;
private long reportTemplateId;
......
......@@ -10,12 +10,10 @@ import javax.persistence.Table;
import java.sql.Date;
import java.util.Objects;
import static pwc.taxtech.Const.DEF_DEFAULT_DATE;
import static pwc.taxtech.Const.DEF_DEFAULT_NUMBER;
import static pwc.taxtech.Const.DEF_DEFAULT_STRING;
import static pwc.taxtech.Const.*;
@Entity
@Table(name = "cell_template_config", schema = "tax_admin", catalog = "")
@Table(name = "cell_template_config", schema = PROJECT_ADMIN, catalog = "")
public class CellTemplateConfig {
private long id;
private long cellTemplateId;
......
......@@ -11,9 +11,10 @@ import java.util.Objects;
import static pwc.taxtech.Const.DEF_DEFAULT_NUMBER;
import static pwc.taxtech.Const.DEF_DEFAULT_STRING;
import static pwc.taxtech.Const.PROJECT_ADMIN;
@Entity
@Table(name = "org_service_template_group", schema = "tax_admin", catalog = "")
@Table(name = "org_service_template_group", schema = PROJECT_ADMIN, catalog = "")
public class OrgServiceTemplateGroup {
private long id;
private String organizationId;
......
......@@ -12,9 +12,10 @@ import java.util.Objects;
import static pwc.taxtech.Const.DEF_DEFAULT_DATE;
import static pwc.taxtech.Const.DEF_DEFAULT_STRING;
import static pwc.taxtech.Const.PROJECT_ADMIN;
@Entity
@Table(name = "OutputInvoiceTriggerSyncHist", schema = "tax_admin", catalog = "")
@Table(name = "OutputInvoiceTriggerSyncHist", schema = PROJECT_ADMIN, catalog = "")
public class OutputInvoiceTriggerSyncHist {
private String id;
private String createBy;
......
......@@ -11,12 +11,10 @@ import java.math.BigDecimal;
import java.sql.Date;
import java.util.Objects;
import static pwc.taxtech.Const.DEF_DEFAULT_BIG_DECIMAL;
import static pwc.taxtech.Const.DEF_DEFAULT_DATE;
import static pwc.taxtech.Const.DEF_DEFAULT_STRING;
import static pwc.taxtech.Const.*;
@Entity
@Table(name = "OutputReconciliationConfig", schema = "tax_admin", catalog = "")
@Table(name = "OutputReconciliationConfig", schema = PROJECT_ADMIN, catalog = "")
public class OutputReconciliationConfig {
private String id;
private String ruleNo;
......
......@@ -12,9 +12,10 @@ import java.util.Objects;
import static pwc.taxtech.Const.DEF_DEFAULT_DATE;
import static pwc.taxtech.Const.DEF_DEFAULT_STRING;
import static pwc.taxtech.Const.PROJECT_ADMIN;
@Entity
@Table(name = "OutputReconciliationMapping", schema = "tax_admin", catalog = "")
@Table(name = "OutputReconciliationMapping", schema = PROJECT_ADMIN, catalog = "")
public class OutputReconciliationMapping {
private String id;
private String outputReconciliationConfigID;
......
......@@ -10,12 +10,10 @@ import javax.persistence.Table;
import java.sql.Date;
import java.util.Objects;
import static pwc.taxtech.Const.DEF_DEFAULT_DATE;
import static pwc.taxtech.Const.DEF_DEFAULT_NUMBER;
import static pwc.taxtech.Const.DEF_DEFAULT_STRING;
import static pwc.taxtech.Const.*;
@Entity
@Table(name = "tax_payer_report_rule", schema = "tax_admin", catalog = "")
@Table(name = "tax_payer_report_rule", schema = PROJECT_ADMIN, catalog = "")
public class TaxPayerReportRule {
private long id;
private int isDefault;
......
......@@ -14,7 +14,7 @@ import java.util.Objects;
import static pwc.taxtech.Const.*;
@Entity
@Table(name = "tax_rule_setting", schema = "tax_admin", catalog = "")
@Table(name = "tax_rule_setting", schema = PROJECT_ADMIN, catalog = "")
public class TaxRuleSetting {
private long id;
private String name;
......
......@@ -10,12 +10,10 @@ import javax.persistence.Table;
import java.sql.Date;
import java.util.Objects;
import static pwc.taxtech.Const.DEF_DEFAULT_DATE;
import static pwc.taxtech.Const.DEF_DEFAULT_NUMBER;
import static pwc.taxtech.Const.DEF_DEFAULT_STRING;
import static pwc.taxtech.Const.*;
@Entity
@Table(name = "tax_rule_setting_organization", schema = "tax_admin", catalog = "")
@Table(name = "tax_rule_setting_organization", schema = PROJECT_ADMIN, catalog = "")
public class TaxRuleSettingOrganization {
private long id;
private long taxSettingId;
......
......@@ -10,12 +10,10 @@ import javax.persistence.Table;
import java.sql.Date;
import java.util.Objects;
import static pwc.taxtech.Const.DEF_DEFAULT_DATE;
import static pwc.taxtech.Const.DEF_DEFAULT_NUMBER;
import static pwc.taxtech.Const.DEF_DEFAULT_STRING;
import static pwc.taxtech.Const.*;
@Entity
@Table(name = "template_group", schema = "tax_admin", catalog = "")
@Table(name = "template_group", schema = PROJECT_ADMIN, catalog = "")
public class TemplateGroup {
private long id;
private String name;
......
......@@ -13,7 +13,7 @@ import java.util.Objects;
import static pwc.taxtech.Const.*;
@Entity
@Table(name = B_Delimiter + "User" + E_Delimiter, schema = "tax_admin", catalog = "")
@Table(name = B_Delimiter + "User" + E_Delimiter, schema = PROJECT_ADMIN, catalog = "")
public class User {
private String id;
private String userName;
......
package pwc.taxtech.vat.entity;
import org.hibernate.annotations.ColumnDefault;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import java.util.Objects;
import static pwc.taxtech.Const.DEF_DEFAULT_NUMBER;
import static pwc.taxtech.Const.DEF_DEFAULT_STRING;
@Entity
public class Account {
private String id;
private String code;
private String name;
private String parentCode;
private String fullName;
private Integer acctProp;
private Integer subProp;
private Integer acctLevel;
private int direction;
private short isLeaf;
private int ruleType;
private short isActive;
private String englishName;
private String industryId;
@Id
@Column(name = "ID", nullable = false, length = 128)
@ColumnDefault(DEF_DEFAULT_STRING)
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
@Basic
@Column(name = "Code", nullable = false, length = 50)
@ColumnDefault(DEF_DEFAULT_STRING)
public String getCode() {
return code;
}
public void setCode(String code) {
this.code = code;
}
@Basic
@Column(name = "Name", nullable = false, length = 50)
@ColumnDefault(DEF_DEFAULT_STRING)
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
@Basic
@Column(name = "ParentCode", nullable = true, length = 50)
@ColumnDefault(DEF_DEFAULT_STRING)
public String getParentCode() {
return parentCode;
}
public void setParentCode(String parentCode) {
this.parentCode = parentCode;
}
@Basic
@Column(name = "FullName", nullable = true, length = 200)
@ColumnDefault(DEF_DEFAULT_STRING)
public String getFullName() {
return fullName;
}
public void setFullName(String fullName) {
this.fullName = fullName;
}
@Basic
@Column(name = "AcctProp", nullable = true)
@ColumnDefault(DEF_DEFAULT_NUMBER)
public Integer getAcctProp() {
return acctProp;
}
public void setAcctProp(Integer acctProp) {
this.acctProp = acctProp;
}
@Basic
@Column(name = "SubProp", nullable = true)
@ColumnDefault(DEF_DEFAULT_NUMBER)
public Integer getSubProp() {
return subProp;
}
public void setSubProp(Integer subProp) {
this.subProp = subProp;
}
@Basic
@Column(name = "AcctLevel", nullable = true)
@ColumnDefault(DEF_DEFAULT_NUMBER)
public Integer getAcctLevel() {
return acctLevel;
}
public void setAcctLevel(Integer acctLevel) {
this.acctLevel = acctLevel;
}
@Basic
@Column(name = "Direction", nullable = false)
@ColumnDefault(DEF_DEFAULT_NUMBER)
public int getDirection() {
return direction;
}
public void setDirection(int direction) {
this.direction = direction;
}
@Basic
@Column(name = "IsLeaf", nullable = false)
public short getIsLeaf() {
return isLeaf;
}
public void setIsLeaf(short isLeaf) {
this.isLeaf = isLeaf;
}
@Basic
@Column(name = "RuleType", nullable = false)
@ColumnDefault(DEF_DEFAULT_NUMBER)
public int getRuleType() {
return ruleType;
}
public void setRuleType(int ruleType) {
this.ruleType = ruleType;
}
@Basic
@Column(name = "IsActive", nullable = false)
public short getIsActive() {
return isActive;
}
public void setIsActive(short isActive) {
this.isActive = isActive;
}
@Basic
@Column(name = "EnglishName", nullable = true, length = 200)
@ColumnDefault(DEF_DEFAULT_STRING)
public String getEnglishName() {
return englishName;
}
public void setEnglishName(String englishName) {
this.englishName = englishName;
}
@Basic
@Column(name = "IndustryID", nullable = false, length = 128)
@ColumnDefault(DEF_DEFAULT_STRING)
public String getIndustryId() {
return industryId;
}
public void setIndustryId(String industryId) {
this.industryId = industryId;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
Account account = (Account) o;
return direction == account.direction &&
isLeaf == account.isLeaf &&
ruleType == account.ruleType &&
isActive == account.isActive &&
Objects.equals(id, account.id) &&
Objects.equals(code, account.code) &&
Objects.equals(name, account.name) &&
Objects.equals(parentCode, account.parentCode) &&
Objects.equals(fullName, account.fullName) &&
Objects.equals(acctProp, account.acctProp) &&
Objects.equals(subProp, account.subProp) &&
Objects.equals(acctLevel, account.acctLevel) &&
Objects.equals(englishName, account.englishName) &&
Objects.equals(industryId, account.industryId);
}
@Override
public int hashCode() {
return Objects.hash(id, code, name, parentCode, fullName, acctProp, subProp, acctLevel, direction, isLeaf, ruleType, isActive, englishName, industryId);
}
}
package pwc.taxtech.vat.entity;
import org.hibernate.annotations.ColumnDefault;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import java.math.BigDecimal;
import java.sql.Date;
import java.util.Objects;
import static pwc.taxtech.Const.*;
@Entity
public class AccountRemap {
private String remapId;
private int period;
private String acctCode;
private String customerCode;
private BigDecimal remapDebit;
private BigDecimal remapCredit;
private String stdCode;
private String reMappName;
private String reMappReason;
private int reMappTypeId;
private Date createTime;
private Date updateTime;
private String creatorId;
private String remapBatchId;
@Id
@Column(name = "RemapId", nullable = false, length = 128)
@ColumnDefault(DEF_DEFAULT_STRING)
public String getRemapId() {
return remapId;
}
public void setRemapId(String remapId) {
this.remapId = remapId;
}
@Basic
@Column(name = "Period", nullable = false)
@ColumnDefault(DEF_DEFAULT_NUMBER)
public int getPeriod() {
return period;
}
public void setPeriod(int period) {
this.period = period;
}
@Basic
@Column(name = "AcctCode", nullable = true, length = 50)
@ColumnDefault(DEF_DEFAULT_STRING)
public String getAcctCode() {
return acctCode;
}
public void setAcctCode(String acctCode) {
this.acctCode = acctCode;
}
@Basic
@Column(name = "CustomerCode", nullable = true, length = 50)
@ColumnDefault(DEF_DEFAULT_STRING)
public String getCustomerCode() {
return customerCode;
}
public void setCustomerCode(String customerCode) {
this.customerCode = customerCode;
}
@Basic
@Column(name = "RemapDebit", nullable = true, precision = 3)
@ColumnDefault(DEF_DEFAULT_BIG_DECIMAL)
public BigDecimal getRemapDebit() {
return remapDebit;
}
public void setRemapDebit(BigDecimal remapDebit) {
this.remapDebit = remapDebit;
}
@Basic
@Column(name = "RemapCredit", nullable = true, precision = 3)
@ColumnDefault(DEF_DEFAULT_BIG_DECIMAL)
public BigDecimal getRemapCredit() {
return remapCredit;
}
public void setRemapCredit(BigDecimal remapCredit) {
this.remapCredit = remapCredit;
}
@Basic
@Column(name = "StdCode", nullable = true, length = 50)
@ColumnDefault(DEF_DEFAULT_STRING)
public String getStdCode() {
return stdCode;
}
public void setStdCode(String stdCode) {
this.stdCode = stdCode;
}
@Basic
@Column(name = "ReMappName", nullable = false, length = 200)
@ColumnDefault(DEF_DEFAULT_STRING)
public String getReMappName() {
return reMappName;
}
public void setReMappName(String reMappName) {
this.reMappName = reMappName;
}
@Basic
@Column(name = "ReMappReason", nullable = true, columnDefinition = DEF_BIG_STRING)
public String getReMappReason() {
return reMappReason;
}
public void setReMappReason(String reMappReason) {
this.reMappReason = reMappReason;
}
@Basic
@Column(name = "ReMappTypeId", nullable = false)
@ColumnDefault(DEF_DEFAULT_NUMBER)
public int getReMappTypeId() {
return reMappTypeId;
}
public void setReMappTypeId(int reMappTypeId) {
this.reMappTypeId = reMappTypeId;
}
@Basic
@Column(name = "CreateTime", nullable = true, columnDefinition = DEF_DEFAULT_DATE)
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
@Basic
@Column(name = "UpdateTime", nullable = true, columnDefinition = DEF_DEFAULT_DATE)
public Date getUpdateTime() {
return updateTime;
}
public void setUpdateTime(Date updateTime) {
this.updateTime = updateTime;
}
@Basic
@Column(name = "CreatorID", nullable = true, length = 128)
@ColumnDefault(DEF_DEFAULT_STRING)
public String getCreatorId() {
return creatorId;
}
public void setCreatorId(String creatorId) {
this.creatorId = creatorId;
}
@Basic
@Column(name = "RemapBatchId", nullable = true, length = 128)
@ColumnDefault(DEF_DEFAULT_STRING)
public String getRemapBatchId() {
return remapBatchId;
}
public void setRemapBatchId(String remapBatchId) {
this.remapBatchId = remapBatchId;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
AccountRemap that = (AccountRemap) o;
return period == that.period &&
reMappTypeId == that.reMappTypeId &&
Objects.equals(remapId, that.remapId) &&
Objects.equals(acctCode, that.acctCode) &&
Objects.equals(customerCode, that.customerCode) &&
Objects.equals(remapDebit, that.remapDebit) &&
Objects.equals(remapCredit, that.remapCredit) &&
Objects.equals(stdCode, that.stdCode) &&
Objects.equals(reMappName, that.reMappName) &&
Objects.equals(reMappReason, that.reMappReason) &&
Objects.equals(createTime, that.createTime) &&
Objects.equals(updateTime, that.updateTime) &&
Objects.equals(creatorId, that.creatorId) &&
Objects.equals(remapBatchId, that.remapBatchId);
}
@Override
public int hashCode() {
return Objects.hash(remapId, period, acctCode, customerCode, remapDebit, remapCredit, stdCode, reMappName, reMappReason, reMappTypeId, createTime, updateTime, creatorId, remapBatchId);
}
}
package pwc.taxtech.vat.entity;
import org.hibernate.annotations.ColumnDefault;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import java.math.BigDecimal;
import java.sql.Date;
import java.util.Objects;
import static pwc.taxtech.Const.*;
@Entity
public class AccountRemapSum {
private String accountRemapSumId;
private Integer period;
private String acctCode;
private String parent;
private Integer acctLevel;
private BigDecimal remapDebit;
private BigDecimal remapCredit;
private Date createTime;
private Date updateTime;
private String creatorId;
@Id
@Column(name = "AccountRemapSumId", nullable = false, length = 128)
@ColumnDefault(DEF_DEFAULT_STRING)
public String getAccountRemapSumId() {
return accountRemapSumId;
}
public void setAccountRemapSumId(String accountRemapSumId) {
this.accountRemapSumId = accountRemapSumId;
}
@Basic
@Column(name = "Period", nullable = true)
@ColumnDefault(DEF_DEFAULT_NUMBER)
public Integer getPeriod() {
return period;
}
public void setPeriod(Integer period) {
this.period = period;
}
@Basic
@Column(name = "AcctCode", nullable = true, length = 50)
@ColumnDefault(DEF_DEFAULT_STRING)
public String getAcctCode() {
return acctCode;
}
public void setAcctCode(String acctCode) {
this.acctCode = acctCode;
}
@Basic
@Column(name = "Parent", nullable = true, length = 50)
@ColumnDefault(DEF_DEFAULT_STRING)
public String getParent() {
return parent;
}
public void setParent(String parent) {
this.parent = parent;
}
@Basic
@Column(name = "AcctLevel", nullable = true)
@ColumnDefault(DEF_DEFAULT_NUMBER)
public Integer getAcctLevel() {
return acctLevel;
}
public void setAcctLevel(Integer acctLevel) {
this.acctLevel = acctLevel;
}
@Basic
@Column(name = "RemapDebit", nullable = true, precision = 3)
@ColumnDefault(DEF_DEFAULT_BIG_DECIMAL)
public BigDecimal getRemapDebit() {
return remapDebit;
}
public void setRemapDebit(BigDecimal remapDebit) {
this.remapDebit = remapDebit;
}
@Basic
@Column(name = "RemapCredit", nullable = true, precision = 3)
@ColumnDefault(DEF_DEFAULT_BIG_DECIMAL)
public BigDecimal getRemapCredit() {
return remapCredit;
}
public void setRemapCredit(BigDecimal remapCredit) {
this.remapCredit = remapCredit;
}
@Basic
@Column(name = "CreateTime", nullable = true, columnDefinition = DEF_DEFAULT_DATE)
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
@Basic
@Column(name = "UpdateTime", nullable = true, columnDefinition = DEF_DEFAULT_DATE)
public Date getUpdateTime() {
return updateTime;
}
public void setUpdateTime(Date updateTime) {
this.updateTime = updateTime;
}
@Basic
@Column(name = "CreatorID", nullable = true, length = 128)
@ColumnDefault(DEF_DEFAULT_STRING)
public String getCreatorId() {
return creatorId;
}
public void setCreatorId(String creatorId) {
this.creatorId = creatorId;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
AccountRemapSum that = (AccountRemapSum) o;
return Objects.equals(accountRemapSumId, that.accountRemapSumId) &&
Objects.equals(period, that.period) &&
Objects.equals(acctCode, that.acctCode) &&
Objects.equals(parent, that.parent) &&
Objects.equals(acctLevel, that.acctLevel) &&
Objects.equals(remapDebit, that.remapDebit) &&
Objects.equals(remapCredit, that.remapCredit) &&
Objects.equals(createTime, that.createTime) &&
Objects.equals(updateTime, that.updateTime) &&
Objects.equals(creatorId, that.creatorId);
}
@Override
public int hashCode() {
return Objects.hash(accountRemapSumId, period, acctCode, parent, acctLevel, remapDebit, remapCredit, createTime, updateTime, creatorId);
}
}
package pwc.taxtech.vat.entity;
import org.hibernate.annotations.ColumnDefault;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import java.sql.Date;
import java.util.Objects;
import static pwc.taxtech.Const.*;
@Entity
public class AssetGroupResult {
private String id;
private String assetName;
private String assetGroupId;
private String assetDetailGroupId;
private Integer taxDepreciationPeriod;
private Date createTime;
private Date updateTime;
@Id
@Column(name = "ID", nullable = false, length = 128)
@ColumnDefault(DEF_DEFAULT_STRING)
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
@Basic
@Column(name = "AssetName", nullable = false, length = 200)
@ColumnDefault(DEF_DEFAULT_STRING)
public String getAssetName() {
return assetName;
}
public void setAssetName(String assetName) {
this.assetName = assetName;
}
@Basic
@Column(name = "AssetGroupID", nullable = false, length = 128)
@ColumnDefault(DEF_DEFAULT_STRING)
public String getAssetGroupId() {
return assetGroupId;
}
public void setAssetGroupId(String assetGroupId) {
this.assetGroupId = assetGroupId;
}
@Basic
@Column(name = "AssetDetailGroupID", nullable = false, length = 128)
@ColumnDefault(DEF_DEFAULT_STRING)
public String getAssetDetailGroupId() {
return assetDetailGroupId;
}
public void setAssetDetailGroupId(String assetDetailGroupId) {
this.assetDetailGroupId = assetDetailGroupId;
}
@Basic
@Column(name = "TaxDepreciationPeriod", nullable = true)
@ColumnDefault(DEF_DEFAULT_NUMBER)
public Integer getTaxDepreciationPeriod() {
return taxDepreciationPeriod;
}
public void setTaxDepreciationPeriod(Integer taxDepreciationPeriod) {
this.taxDepreciationPeriod = taxDepreciationPeriod;
}
@Basic
@Column(name = "CreateTime", nullable = false, columnDefinition = DEF_DEFAULT_DATE)
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
@Basic
@Column(name = "UpdateTime", nullable = false, columnDefinition = DEF_DEFAULT_DATE)
public Date getUpdateTime() {
return updateTime;
}
public void setUpdateTime(Date updateTime) {
this.updateTime = updateTime;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
AssetGroupResult that = (AssetGroupResult) o;
return Objects.equals(id, that.id) &&
Objects.equals(assetName, that.assetName) &&
Objects.equals(assetGroupId, that.assetGroupId) &&
Objects.equals(assetDetailGroupId, that.assetDetailGroupId) &&
Objects.equals(taxDepreciationPeriod, that.taxDepreciationPeriod) &&
Objects.equals(createTime, that.createTime) &&
Objects.equals(updateTime, that.updateTime);
}
@Override
public int hashCode() {
return Objects.hash(id, assetName, assetGroupId, assetDetailGroupId, taxDepreciationPeriod, createTime, updateTime);
}
}
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
package pwc.taxtech.vat.entity;
import org.hibernate.annotations.ColumnDefault;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import java.math.BigDecimal;
import java.util.Objects;
import static pwc.taxtech.Const.*;
@Entity
public class BalanceStdManual {
private String balanceId;
private long periodId;
private String acctCode;
private BigDecimal begBal;
private BigDecimal begDebitBal;
private BigDecimal begCreditBal;
private BigDecimal debitBal;
private BigDecimal creditBal;
private BigDecimal yearDebitBal;
private BigDecimal yearCreditBal;
private BigDecimal endBal;
private BigDecimal endDebitBal;
private BigDecimal endCreditBal;
private Integer subProp;
private BigDecimal carryoverDebit;
private BigDecimal carryoverCredit;
private BigDecimal yearCarryoverDebit;
private BigDecimal yearCarryoverCredit;
private BigDecimal debitNet;
private BigDecimal creditNet;
private BigDecimal yearDebitNet;
private BigDecimal yearCreditNet;
@Id
@Column(name = "BalanceID", nullable = false, length = 128)
@ColumnDefault(DEF_DEFAULT_STRING)
public String getBalanceId() {
return balanceId;
}
public void setBalanceId(String balanceId) {
this.balanceId = balanceId;
}
@Basic
@Column(name = "PeriodID", nullable = false)
@ColumnDefault(DEF_DEFAULT_NUMBER)
public long getPeriodId() {
return periodId;
}
public void setPeriodId(long periodId) {
this.periodId = periodId;
}
@Basic
@Column(name = "AcctCode", nullable = false, length = 50)
@ColumnDefault(DEF_DEFAULT_STRING)
public String getAcctCode() {
return acctCode;
}
public void setAcctCode(String acctCode) {
this.acctCode = acctCode;
}
@Basic
@Column(name = "BegBal", nullable = true, precision = 3)
@ColumnDefault(DEF_DEFAULT_BIG_DECIMAL)
public BigDecimal getBegBal() {
return begBal;
}
public void setBegBal(BigDecimal begBal) {
this.begBal = begBal;
}
@Basic
@Column(name = "BegDebitBal", nullable = true, precision = 3)
@ColumnDefault(DEF_DEFAULT_BIG_DECIMAL)
public BigDecimal getBegDebitBal() {
return begDebitBal;
}
public void setBegDebitBal(BigDecimal begDebitBal) {
this.begDebitBal = begDebitBal;
}
@Basic
@Column(name = "BegCreditBal", nullable = true, precision = 3)
@ColumnDefault(DEF_DEFAULT_BIG_DECIMAL)
public BigDecimal getBegCreditBal() {
return begCreditBal;
}
public void setBegCreditBal(BigDecimal begCreditBal) {
this.begCreditBal = begCreditBal;
}
@Basic
@Column(name = "DebitBal", nullable = true, precision = 3)
@ColumnDefault(DEF_DEFAULT_BIG_DECIMAL)
public BigDecimal getDebitBal() {
return debitBal;
}
public void setDebitBal(BigDecimal debitBal) {
this.debitBal = debitBal;
}
@Basic
@Column(name = "CreditBal", nullable = true, precision = 3)
@ColumnDefault(DEF_DEFAULT_BIG_DECIMAL)
public BigDecimal getCreditBal() {
return creditBal;
}
public void setCreditBal(BigDecimal creditBal) {
this.creditBal = creditBal;
}
@Basic
@Column(name = "YearDebitBal", nullable = true, precision = 3)
@ColumnDefault(DEF_DEFAULT_BIG_DECIMAL)
public BigDecimal getYearDebitBal() {
return yearDebitBal;
}
public void setYearDebitBal(BigDecimal yearDebitBal) {
this.yearDebitBal = yearDebitBal;
}
@Basic
@Column(name = "YearCreditBal", nullable = true, precision = 3)
@ColumnDefault(DEF_DEFAULT_BIG_DECIMAL)
public BigDecimal getYearCreditBal() {
return yearCreditBal;
}
public void setYearCreditBal(BigDecimal yearCreditBal) {
this.yearCreditBal = yearCreditBal;
}
@Basic
@Column(name = "EndBal", nullable = true, precision = 3)
@ColumnDefault(DEF_DEFAULT_BIG_DECIMAL)
public BigDecimal getEndBal() {
return endBal;
}
public void setEndBal(BigDecimal endBal) {
this.endBal = endBal;
}
@Basic
@Column(name = "EndDebitBal", nullable = true, precision = 3)
@ColumnDefault(DEF_DEFAULT_BIG_DECIMAL)
public BigDecimal getEndDebitBal() {
return endDebitBal;
}
public void setEndDebitBal(BigDecimal endDebitBal) {
this.endDebitBal = endDebitBal;
}
@Basic
@Column(name = "EndCreditBal", nullable = true, precision = 3)
@ColumnDefault(DEF_DEFAULT_BIG_DECIMAL)
public BigDecimal getEndCreditBal() {
return endCreditBal;
}
public void setEndCreditBal(BigDecimal endCreditBal) {
this.endCreditBal = endCreditBal;
}
@Basic
@Column(name = "SubProp", nullable = true)
@ColumnDefault(DEF_DEFAULT_NUMBER)
public Integer getSubProp() {
return subProp;
}
public void setSubProp(Integer subProp) {
this.subProp = subProp;
}
@Basic
@Column(name = "CarryoverDebit", nullable = true, precision = 3)
@ColumnDefault(DEF_DEFAULT_BIG_DECIMAL)
public BigDecimal getCarryoverDebit() {
return carryoverDebit;
}
public void setCarryoverDebit(BigDecimal carryoverDebit) {
this.carryoverDebit = carryoverDebit;
}
@Basic
@Column(name = "CarryoverCredit", nullable = true, precision = 3)
@ColumnDefault(DEF_DEFAULT_BIG_DECIMAL)
public BigDecimal getCarryoverCredit() {
return carryoverCredit;
}
public void setCarryoverCredit(BigDecimal carryoverCredit) {
this.carryoverCredit = carryoverCredit;
}
@Basic
@Column(name = "YearCarryoverDebit", nullable = true, precision = 3)
@ColumnDefault(DEF_DEFAULT_BIG_DECIMAL)
public BigDecimal getYearCarryoverDebit() {
return yearCarryoverDebit;
}
public void setYearCarryoverDebit(BigDecimal yearCarryoverDebit) {
this.yearCarryoverDebit = yearCarryoverDebit;
}
@Basic
@Column(name = "YearCarryoverCredit", nullable = true, precision = 3)
@ColumnDefault(DEF_DEFAULT_BIG_DECIMAL)
public BigDecimal getYearCarryoverCredit() {
return yearCarryoverCredit;
}
public void setYearCarryoverCredit(BigDecimal yearCarryoverCredit) {
this.yearCarryoverCredit = yearCarryoverCredit;
}
@Basic
@Column(name = "DebitNet", nullable = true, precision = 3)
@ColumnDefault(DEF_DEFAULT_BIG_DECIMAL)
public BigDecimal getDebitNet() {
return debitNet;
}
public void setDebitNet(BigDecimal debitNet) {
this.debitNet = debitNet;
}
@Basic
@Column(name = "CreditNet", nullable = true, precision = 3)
@ColumnDefault(DEF_DEFAULT_BIG_DECIMAL)
public BigDecimal getCreditNet() {
return creditNet;
}
public void setCreditNet(BigDecimal creditNet) {
this.creditNet = creditNet;
}
@Basic
@Column(name = "YearDebitNet", nullable = true, precision = 3)
@ColumnDefault(DEF_DEFAULT_BIG_DECIMAL)
public BigDecimal getYearDebitNet() {
return yearDebitNet;
}
public void setYearDebitNet(BigDecimal yearDebitNet) {
this.yearDebitNet = yearDebitNet;
}
@Basic
@Column(name = "YearCreditNet", nullable = true, precision = 3)
@ColumnDefault(DEF_DEFAULT_BIG_DECIMAL)
public BigDecimal getYearCreditNet() {
return yearCreditNet;
}
public void setYearCreditNet(BigDecimal yearCreditNet) {
this.yearCreditNet = yearCreditNet;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
BalanceStdManual that = (BalanceStdManual) o;
return periodId == that.periodId &&
Objects.equals(balanceId, that.balanceId) &&
Objects.equals(acctCode, that.acctCode) &&
Objects.equals(begBal, that.begBal) &&
Objects.equals(begDebitBal, that.begDebitBal) &&
Objects.equals(begCreditBal, that.begCreditBal) &&
Objects.equals(debitBal, that.debitBal) &&
Objects.equals(creditBal, that.creditBal) &&
Objects.equals(yearDebitBal, that.yearDebitBal) &&
Objects.equals(yearCreditBal, that.yearCreditBal) &&
Objects.equals(endBal, that.endBal) &&
Objects.equals(endDebitBal, that.endDebitBal) &&
Objects.equals(endCreditBal, that.endCreditBal) &&
Objects.equals(subProp, that.subProp) &&
Objects.equals(carryoverDebit, that.carryoverDebit) &&
Objects.equals(carryoverCredit, that.carryoverCredit) &&
Objects.equals(yearCarryoverDebit, that.yearCarryoverDebit) &&
Objects.equals(yearCarryoverCredit, that.yearCarryoverCredit) &&
Objects.equals(debitNet, that.debitNet) &&
Objects.equals(creditNet, that.creditNet) &&
Objects.equals(yearDebitNet, that.yearDebitNet) &&
Objects.equals(yearCreditNet, that.yearCreditNet);
}
@Override
public int hashCode() {
return Objects.hash(balanceId, periodId, acctCode, begBal, begDebitBal, begCreditBal, debitBal, creditBal, yearDebitBal, yearCreditBal, endBal, endDebitBal, endCreditBal, subProp, carryoverDebit, carryoverCredit, yearCarryoverDebit, yearCarryoverCredit, debitNet, creditNet, yearDebitNet, yearCreditNet);
}
}
package pwc.taxtech.vat.entity;
import org.hibernate.annotations.ColumnDefault;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.sql.Date;
import java.util.Objects;
import static pwc.taxtech.Const.*;
@Entity
@Table(name = "cell_comment", schema = PROJECT_SCHEMA, catalog = "")
public class CellComment {
private long id;
private long cellDataId;
private String userId;
private String userName;
private String comment;
private String replyToUserName;
private Date createTime;
private Date updateTime;
private String createBy;
private String updateBy;
@Id
@Column(name = "id", nullable = false)
@ColumnDefault(DEF_DEFAULT_NUMBER)
public long getId() {
return id;
}
public void setId(long id) {
this.id = id;
}
@Basic
@Column(name = "cell_data_id", nullable = false)
@ColumnDefault(DEF_DEFAULT_NUMBER)
public long getCellDataId() {
return cellDataId;
}
public void setCellDataId(long cellDataId) {
this.cellDataId = cellDataId;
}
@Basic
@Column(name = "user_id", nullable = false, length = 128)
@ColumnDefault(DEF_DEFAULT_STRING)
public String getUserId() {
return userId;
}
public void setUserId(String userId) {
this.userId = userId;
}
@Basic
@Column(name = "user_name", nullable = false, length = 50)
@ColumnDefault(DEF_DEFAULT_STRING)
public String getUserName() {
return userName;
}
public void setUserName(String userName) {
this.userName = userName;
}
@Basic
@Column(name = B_Delimiter + "comment" + E_Delimiter, nullable = false, length = 1000)
@ColumnDefault(DEF_DEFAULT_STRING)
public String getComment() {
return comment;
}
public void setComment(String comment) {
this.comment = comment;
}
@Basic
@Column(name = "reply_to_user_name", nullable = false, length = 50)
@ColumnDefault(DEF_DEFAULT_STRING)
public String getReplyToUserName() {
return replyToUserName;
}
public void setReplyToUserName(String replyToUserName) {
this.replyToUserName = replyToUserName;
}
@Basic
@Column(name = "create_time", nullable = false, columnDefinition = DEF_DEFAULT_DATE)
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
@Basic
@Column(name = "update_time", nullable = false, columnDefinition = DEF_DEFAULT_DATE)
public Date getUpdateTime() {
return updateTime;
}
public void setUpdateTime(Date updateTime) {
this.updateTime = updateTime;
}
@Basic
@Column(name = "create_by", nullable = false, length = 128)
@ColumnDefault(DEF_DEFAULT_STRING)
public String getCreateBy() {
return createBy;
}
public void setCreateBy(String createBy) {
this.createBy = createBy;
}
@Basic
@Column(name = "update_by", nullable = false, length = 128)
@ColumnDefault(DEF_DEFAULT_STRING)
public String getUpdateBy() {
return updateBy;
}
public void setUpdateBy(String updateBy) {
this.updateBy = updateBy;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
CellComment that = (CellComment) o;
return id == that.id &&
cellDataId == that.cellDataId &&
Objects.equals(userId, that.userId) &&
Objects.equals(userName, that.userName) &&
Objects.equals(comment, that.comment) &&
Objects.equals(replyToUserName, that.replyToUserName) &&
Objects.equals(createTime, that.createTime) &&
Objects.equals(updateTime, that.updateTime) &&
Objects.equals(createBy, that.createBy) &&
Objects.equals(updateBy, that.updateBy);
}
@Override
public int hashCode() {
return Objects.hash(id, cellDataId, userId, userName, comment, replyToUserName, createTime, updateTime, createBy, updateBy);
}
}
package pwc.taxtech.vat.entity;
import org.hibernate.annotations.ColumnDefault;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.sql.Date;
import java.util.Objects;
import static pwc.taxtech.Const.*;
@Entity
@Table(name = "cell_data", schema = PROJECT_SCHEMA, catalog = "")
public class CellData {
private long id;
private long reportId;
private long cellTemplateId;
private String data;
private String formulaExp;
private String createBy;
private Date createTime;
private String updateBy;
private Date updateTime;
@Id
@Column(name = "id", nullable = false)
@ColumnDefault(DEF_DEFAULT_NUMBER)
public long getId() {
return id;
}
public void setId(long id) {
this.id = id;
}
@Basic
@Column(name = "report_id", nullable = false)
@ColumnDefault(DEF_DEFAULT_NUMBER)
public long getReportId() {
return reportId;
}
public void setReportId(long reportId) {
this.reportId = reportId;
}
@Basic
@Column(name = "cell_template_id", nullable = false)
@ColumnDefault(DEF_DEFAULT_NUMBER)
public long getCellTemplateId() {
return cellTemplateId;
}
public void setCellTemplateId(long cellTemplateId) {
this.cellTemplateId = cellTemplateId;
}
@Basic
@Column(name = "data", nullable = false, length = 200)
@ColumnDefault(DEF_DEFAULT_STRING)
public String getData() {
return data;
}
public void setData(String data) {
this.data = data;
}
@Basic
@Column(name = "formula_exp", nullable = false, length = 1000)
@ColumnDefault(DEF_DEFAULT_STRING)
public String getFormulaExp() {
return formulaExp;
}
public void setFormulaExp(String formulaExp) {
this.formulaExp = formulaExp;
}
@Basic
@Column(name = "create_by", nullable = false, length = 128)
@ColumnDefault(DEF_DEFAULT_STRING)
public String getCreateBy() {
return createBy;
}
public void setCreateBy(String createBy) {
this.createBy = createBy;
}
@Basic
@Column(name = "create_time", nullable = false, columnDefinition = DEF_DEFAULT_DATE)
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
@Basic
@Column(name = "update_by", nullable = false, length = 128)
@ColumnDefault(DEF_DEFAULT_STRING)
public String getUpdateBy() {
return updateBy;
}
public void setUpdateBy(String updateBy) {
this.updateBy = updateBy;
}
@Basic
@Column(name = "update_time", nullable = false, columnDefinition = DEF_DEFAULT_DATE)
public Date getUpdateTime() {
return updateTime;
}
public void setUpdateTime(Date updateTime) {
this.updateTime = updateTime;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
CellData cellData = (CellData) o;
return id == cellData.id &&
reportId == cellData.reportId &&
cellTemplateId == cellData.cellTemplateId &&
Objects.equals(data, cellData.data) &&
Objects.equals(formulaExp, cellData.formulaExp) &&
Objects.equals(createBy, cellData.createBy) &&
Objects.equals(createTime, cellData.createTime) &&
Objects.equals(updateBy, cellData.updateBy) &&
Objects.equals(updateTime, cellData.updateTime);
}
@Override
public int hashCode() {
return Objects.hash(id, reportId, cellTemplateId, data, formulaExp, createBy, createTime, updateBy, updateTime);
}
}
package pwc.taxtech.vat.entity;
import org.hibernate.annotations.ColumnDefault;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.sql.Date;
import java.util.Objects;
import static pwc.taxtech.Const.DEF_DEFAULT_DATE;
import static pwc.taxtech.Const.DEF_DEFAULT_NUMBER;
import static pwc.taxtech.Const.PROJECT_SCHEMA;
@Entity
@Table(name = "cell_data_source", schema = PROJECT_SCHEMA, catalog = "")
public class CellDataSource {
private long id;
private long cellTemplateId;
private long cellDataId;
private long dataSourceId;
private int operationType;
private Date createTime;
private Date updateTime;
@Id
@Column(name = "id", nullable = false)
@ColumnDefault(DEF_DEFAULT_NUMBER)
public long getId() {
return id;
}
public void setId(long id) {
this.id = id;
}
@Basic
@Column(name = "cell_template_id", nullable = false)
@ColumnDefault(DEF_DEFAULT_NUMBER)
public long getCellTemplateId() {
return cellTemplateId;
}
public void setCellTemplateId(long cellTemplateId) {
this.cellTemplateId = cellTemplateId;
}
@Basic
@Column(name = "cell_data_id", nullable = false)
@ColumnDefault(DEF_DEFAULT_NUMBER)
public long getCellDataId() {
return cellDataId;
}
public void setCellDataId(long cellDataId) {
this.cellDataId = cellDataId;
}
@Basic
@Column(name = "data_source_id", nullable = false)
@ColumnDefault(DEF_DEFAULT_NUMBER)
public long getDataSourceId() {
return dataSourceId;
}
public void setDataSourceId(long dataSourceId) {
this.dataSourceId = dataSourceId;
}
@Basic
@Column(name = "operation_type", nullable = false)
@ColumnDefault(DEF_DEFAULT_NUMBER)
public int getOperationType() {
return operationType;
}
public void setOperationType(int operationType) {
this.operationType = operationType;
}
@Basic
@Column(name = "create_time", nullable = false, columnDefinition = DEF_DEFAULT_DATE)
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
@Basic
@Column(name = "update_time", nullable = false, columnDefinition = DEF_DEFAULT_DATE)
public Date getUpdateTime() {
return updateTime;
}
public void setUpdateTime(Date updateTime) {
this.updateTime = updateTime;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
CellDataSource that = (CellDataSource) o;
return id == that.id &&
cellTemplateId == that.cellTemplateId &&
cellDataId == that.cellDataId &&
dataSourceId == that.dataSourceId &&
operationType == that.operationType &&
Objects.equals(createTime, that.createTime) &&
Objects.equals(updateTime, that.updateTime);
}
@Override
public int hashCode() {
return Objects.hash(id, cellTemplateId, cellDataId, dataSourceId, operationType, createTime, updateTime);
}
}
package pwc.taxtech.vat.entity;
import org.hibernate.annotations.ColumnDefault;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import java.math.BigDecimal;
import java.util.Objects;
import static pwc.taxtech.Const.*;
@Entity
public class CompanyBalance {
private String balanceId;
private Integer periodId;
private String acctCode;
private String customerCode;
private BigDecimal begDebitBal;
private BigDecimal begCreditBal;
private BigDecimal begBal;
private BigDecimal endBal;
private BigDecimal endDebitBal;
private BigDecimal endCreditBal;
private BigDecimal debitBal;
private BigDecimal creditBal;
private Integer monthId;
@Id
@Column(name = "BalanceId", nullable = false, length = 128)
@ColumnDefault(DEF_DEFAULT_STRING)
public String getBalanceId() {
return balanceId;
}
public void setBalanceId(String balanceId) {
this.balanceId = balanceId;
}
@Basic
@Column(name = "PeriodId", nullable = true)
@ColumnDefault(DEF_DEFAULT_NUMBER)
public Integer getPeriodId() {
return periodId;
}
public void setPeriodId(Integer periodId) {
this.periodId = periodId;
}
@Basic
@Column(name = "AcctCode", nullable = true, length = 50)
@ColumnDefault(DEF_DEFAULT_STRING)
public String getAcctCode() {
return acctCode;
}
public void setAcctCode(String acctCode) {
this.acctCode = acctCode;
}
@Basic
@Column(name = "CustomerCode", nullable = true, length = 50)
@ColumnDefault(DEF_DEFAULT_STRING)
public String getCustomerCode() {
return customerCode;
}
public void setCustomerCode(String customerCode) {
this.customerCode = customerCode;
}
@Basic
@Column(name = "BegDebitBal", nullable = true, precision = 3)
@ColumnDefault(DEF_DEFAULT_BIG_DECIMAL)
public BigDecimal getBegDebitBal() {
return begDebitBal;
}
public void setBegDebitBal(BigDecimal begDebitBal) {
this.begDebitBal = begDebitBal;
}
@Basic
@Column(name = "BegCreditBal", nullable = true, precision = 3)
@ColumnDefault(DEF_DEFAULT_BIG_DECIMAL)
public BigDecimal getBegCreditBal() {
return begCreditBal;
}
public void setBegCreditBal(BigDecimal begCreditBal) {
this.begCreditBal = begCreditBal;
}
@Basic
@Column(name = "BegBal", nullable = true, precision = 3)
@ColumnDefault(DEF_DEFAULT_BIG_DECIMAL)
public BigDecimal getBegBal() {
return begBal;
}
public void setBegBal(BigDecimal begBal) {
this.begBal = begBal;
}
@Basic
@Column(name = "EndBal", nullable = true, precision = 3)
@ColumnDefault(DEF_DEFAULT_BIG_DECIMAL)
public BigDecimal getEndBal() {
return endBal;
}
public void setEndBal(BigDecimal endBal) {
this.endBal = endBal;
}
@Basic
@Column(name = "EndDebitBal", nullable = true, precision = 3)
@ColumnDefault(DEF_DEFAULT_BIG_DECIMAL)
public BigDecimal getEndDebitBal() {
return endDebitBal;
}
public void setEndDebitBal(BigDecimal endDebitBal) {
this.endDebitBal = endDebitBal;
}
@Basic
@Column(name = "EndCreditBal", nullable = true, precision = 3)
@ColumnDefault(DEF_DEFAULT_BIG_DECIMAL)
public BigDecimal getEndCreditBal() {
return endCreditBal;
}
public void setEndCreditBal(BigDecimal endCreditBal) {
this.endCreditBal = endCreditBal;
}
@Basic
@Column(name = "DebitBal", nullable = true, precision = 3)
@ColumnDefault(DEF_DEFAULT_BIG_DECIMAL)
public BigDecimal getDebitBal() {
return debitBal;
}
public void setDebitBal(BigDecimal debitBal) {
this.debitBal = debitBal;
}
@Basic
@Column(name = "CreditBal", nullable = true, precision = 3)
@ColumnDefault(DEF_DEFAULT_BIG_DECIMAL)
public BigDecimal getCreditBal() {
return creditBal;
}
public void setCreditBal(BigDecimal creditBal) {
this.creditBal = creditBal;
}
@Basic
@Column(name = "MonthId", nullable = true)
@ColumnDefault(DEF_DEFAULT_NUMBER)
public Integer getMonthId() {
return monthId;
}
public void setMonthId(Integer monthId) {
this.monthId = monthId;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
CompanyBalance that = (CompanyBalance) o;
return Objects.equals(balanceId, that.balanceId) &&
Objects.equals(periodId, that.periodId) &&
Objects.equals(acctCode, that.acctCode) &&
Objects.equals(customerCode, that.customerCode) &&
Objects.equals(begDebitBal, that.begDebitBal) &&
Objects.equals(begCreditBal, that.begCreditBal) &&
Objects.equals(begBal, that.begBal) &&
Objects.equals(endBal, that.endBal) &&
Objects.equals(endDebitBal, that.endDebitBal) &&
Objects.equals(endCreditBal, that.endCreditBal) &&
Objects.equals(debitBal, that.debitBal) &&
Objects.equals(creditBal, that.creditBal) &&
Objects.equals(monthId, that.monthId);
}
@Override
public int hashCode() {
return Objects.hash(balanceId, periodId, acctCode, customerCode, begDebitBal, begCreditBal, begBal, endBal, endDebitBal, endCreditBal, debitBal, creditBal, monthId);
}
}
package pwc.taxtech.vat.entity;
import org.hibernate.annotations.ColumnDefault;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import java.math.BigDecimal;
import java.util.Objects;
import static pwc.taxtech.Const.*;
@Entity
public class CustBalance {
private String balanceId;
private long periodId;
private String acctCode;
private String customerCode;
private BigDecimal begBal;
private BigDecimal begDebitBal;
private BigDecimal begCreditBal;
private BigDecimal debitBal;
private BigDecimal creditBal;
private BigDecimal yearDebitBal;
private BigDecimal yearCreditBal;
private BigDecimal endBal;
private BigDecimal endDebitBal;
private BigDecimal endCreditBal;
private Integer monthId;
private Integer isDummy;
@Id
@Column(name = "BalanceId", nullable = false, length = 128)
@ColumnDefault(DEF_DEFAULT_STRING)
public String getBalanceId() {
return balanceId;
}
public void setBalanceId(String balanceId) {
this.balanceId = balanceId;
}
@Basic
@Column(name = "PeriodId", nullable = false)
@ColumnDefault(DEF_DEFAULT_NUMBER)
public long getPeriodId() {
return periodId;
}
public void setPeriodId(long periodId) {
this.periodId = periodId;
}
@Basic
@Column(name = "AcctCode", nullable = false, length = 50)
@ColumnDefault(DEF_DEFAULT_STRING)
public String getAcctCode() {
return acctCode;
}
public void setAcctCode(String acctCode) {
this.acctCode = acctCode;
}
@Basic
@Column(name = "CustomerCode", nullable = true, length = 50)
@ColumnDefault(DEF_DEFAULT_STRING)
public String getCustomerCode() {
return customerCode;
}
public void setCustomerCode(String customerCode) {
this.customerCode = customerCode;
}
@Basic
@Column(name = "BegBal", nullable = true, precision = 3)
@ColumnDefault(DEF_DEFAULT_BIG_DECIMAL)
public BigDecimal getBegBal() {
return begBal;
}
public void setBegBal(BigDecimal begBal) {
this.begBal = begBal;
}
@Basic
@Column(name = "BegDebitBal", nullable = true, precision = 3)
@ColumnDefault(DEF_DEFAULT_BIG_DECIMAL)
public BigDecimal getBegDebitBal() {
return begDebitBal;
}
public void setBegDebitBal(BigDecimal begDebitBal) {
this.begDebitBal = begDebitBal;
}
@Basic
@Column(name = "BegCreditBal", nullable = true, precision = 3)
@ColumnDefault(DEF_DEFAULT_BIG_DECIMAL)
public BigDecimal getBegCreditBal() {
return begCreditBal;
}
public void setBegCreditBal(BigDecimal begCreditBal) {
this.begCreditBal = begCreditBal;
}
@Basic
@Column(name = "DebitBal", nullable = true, precision = 3)
@ColumnDefault(DEF_DEFAULT_BIG_DECIMAL)
public BigDecimal getDebitBal() {
return debitBal;
}
public void setDebitBal(BigDecimal debitBal) {
this.debitBal = debitBal;
}
@Basic
@Column(name = "CreditBal", nullable = true, precision = 3)
@ColumnDefault(DEF_DEFAULT_BIG_DECIMAL)
public BigDecimal getCreditBal() {
return creditBal;
}
public void setCreditBal(BigDecimal creditBal) {
this.creditBal = creditBal;
}
@Basic
@Column(name = "YearDebitBal", nullable = true, precision = 3)
@ColumnDefault(DEF_DEFAULT_BIG_DECIMAL)
public BigDecimal getYearDebitBal() {
return yearDebitBal;
}
public void setYearDebitBal(BigDecimal yearDebitBal) {
this.yearDebitBal = yearDebitBal;
}
@Basic
@Column(name = "YearCreditBal", nullable = true, precision = 3)
@ColumnDefault(DEF_DEFAULT_BIG_DECIMAL)
public BigDecimal getYearCreditBal() {
return yearCreditBal;
}
public void setYearCreditBal(BigDecimal yearCreditBal) {
this.yearCreditBal = yearCreditBal;
}
@Basic
@Column(name = "EndBal", nullable = true, precision = 3)
@ColumnDefault(DEF_DEFAULT_BIG_DECIMAL)
public BigDecimal getEndBal() {
return endBal;
}
public void setEndBal(BigDecimal endBal) {
this.endBal = endBal;
}
@Basic
@Column(name = "EndDebitBal", nullable = true, precision = 3)
@ColumnDefault(DEF_DEFAULT_BIG_DECIMAL)
public BigDecimal getEndDebitBal() {
return endDebitBal;
}
public void setEndDebitBal(BigDecimal endDebitBal) {
this.endDebitBal = endDebitBal;
}
@Basic
@Column(name = "EndCreditBal", nullable = true, precision = 3)
@ColumnDefault(DEF_DEFAULT_BIG_DECIMAL)
public BigDecimal getEndCreditBal() {
return endCreditBal;
}
public void setEndCreditBal(BigDecimal endCreditBal) {
this.endCreditBal = endCreditBal;
}
@Basic
@Column(name = "MonthId", nullable = true)
@ColumnDefault(DEF_DEFAULT_NUMBER)
public Integer getMonthId() {
return monthId;
}
public void setMonthId(Integer monthId) {
this.monthId = monthId;
}
@Basic
@Column(name = "IsDummy", nullable = true)
@ColumnDefault(DEF_DEFAULT_NUMBER)
public Integer getIsDummy() {
return isDummy;
}
public void setIsDummy(Integer isDummy) {
this.isDummy = isDummy;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
CustBalance that = (CustBalance) o;
return periodId == that.periodId &&
Objects.equals(balanceId, that.balanceId) &&
Objects.equals(acctCode, that.acctCode) &&
Objects.equals(customerCode, that.customerCode) &&
Objects.equals(begBal, that.begBal) &&
Objects.equals(begDebitBal, that.begDebitBal) &&
Objects.equals(begCreditBal, that.begCreditBal) &&
Objects.equals(debitBal, that.debitBal) &&
Objects.equals(creditBal, that.creditBal) &&
Objects.equals(yearDebitBal, that.yearDebitBal) &&
Objects.equals(yearCreditBal, that.yearCreditBal) &&
Objects.equals(endBal, that.endBal) &&
Objects.equals(endDebitBal, that.endDebitBal) &&
Objects.equals(endCreditBal, that.endCreditBal) &&
Objects.equals(monthId, that.monthId) &&
Objects.equals(isDummy, that.isDummy);
}
@Override
public int hashCode() {
return Objects.hash(balanceId, periodId, acctCode, customerCode, begBal, begDebitBal, begCreditBal, debitBal, creditBal, yearDebitBal, yearCreditBal, endBal, endDebitBal, endCreditBal, monthId, isDummy);
}
}
package pwc.taxtech.vat.entity;
import org.hibernate.annotations.ColumnDefault;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import java.math.BigDecimal;
import java.util.Objects;
import static pwc.taxtech.Const.*;
@Entity
public class CustBalanceStd {
private String balanceId;
private int periodId;
private String acctCode;
private String customerCode;
private BigDecimal begBal;
private BigDecimal debitBal;
private BigDecimal creditBal;
private BigDecimal yearDebitBal;
private BigDecimal yearCreditBal;
private BigDecimal endBal;
private BigDecimal begDebitBal;
private BigDecimal begCreditBal;
private BigDecimal endDebitBal;
private BigDecimal endCreditBal;
@Id
@Column(name = "BalanceID", nullable = false, length = 128)
@ColumnDefault(DEF_DEFAULT_STRING)
public String getBalanceId() {
return balanceId;
}
public void setBalanceId(String balanceId) {
this.balanceId = balanceId;
}
@Basic
@Column(name = "PeriodID", nullable = false)
@ColumnDefault(DEF_DEFAULT_NUMBER)
public int getPeriodId() {
return periodId;
}
public void setPeriodId(int periodId) {
this.periodId = periodId;
}
@Basic
@Column(name = "AcctCode", nullable = false, length = 50)
@ColumnDefault(DEF_DEFAULT_STRING)
public String getAcctCode() {
return acctCode;
}
public void setAcctCode(String acctCode) {
this.acctCode = acctCode;
}
@Basic
@Column(name = "CustomerCode", nullable = true, length = 50)
@ColumnDefault(DEF_DEFAULT_STRING)
public String getCustomerCode() {
return customerCode;
}
public void setCustomerCode(String customerCode) {
this.customerCode = customerCode;
}
@Basic
@Column(name = "BegBal", nullable = true, precision = 3)
@ColumnDefault(DEF_DEFAULT_BIG_DECIMAL)
public BigDecimal getBegBal() {
return begBal;
}
public void setBegBal(BigDecimal begBal) {
this.begBal = begBal;
}
@Basic
@Column(name = "DebitBal", nullable = true, precision = 3)
@ColumnDefault(DEF_DEFAULT_BIG_DECIMAL)
public BigDecimal getDebitBal() {
return debitBal;
}
public void setDebitBal(BigDecimal debitBal) {
this.debitBal = debitBal;
}
@Basic
@Column(name = "CreditBal", nullable = true, precision = 3)
@ColumnDefault(DEF_DEFAULT_BIG_DECIMAL)
public BigDecimal getCreditBal() {
return creditBal;
}
public void setCreditBal(BigDecimal creditBal) {
this.creditBal = creditBal;
}
@Basic
@Column(name = "YearDebitBal", nullable = true, precision = 3)
@ColumnDefault(DEF_DEFAULT_BIG_DECIMAL)
public BigDecimal getYearDebitBal() {
return yearDebitBal;
}
public void setYearDebitBal(BigDecimal yearDebitBal) {
this.yearDebitBal = yearDebitBal;
}
@Basic
@Column(name = "YearCreditBal", nullable = true, precision = 3)
@ColumnDefault(DEF_DEFAULT_BIG_DECIMAL)
public BigDecimal getYearCreditBal() {
return yearCreditBal;
}
public void setYearCreditBal(BigDecimal yearCreditBal) {
this.yearCreditBal = yearCreditBal;
}
@Basic
@Column(name = "EndBal", nullable = true, precision = 3)
@ColumnDefault(DEF_DEFAULT_BIG_DECIMAL)
public BigDecimal getEndBal() {
return endBal;
}
public void setEndBal(BigDecimal endBal) {
this.endBal = endBal;
}
@Basic
@Column(name = "BegDebitBal", nullable = true, precision = 3)
@ColumnDefault(DEF_DEFAULT_BIG_DECIMAL)
public BigDecimal getBegDebitBal() {
return begDebitBal;
}
public void setBegDebitBal(BigDecimal begDebitBal) {
this.begDebitBal = begDebitBal;
}
@Basic
@Column(name = "BegCreditBal", nullable = true, precision = 3)
@ColumnDefault(DEF_DEFAULT_BIG_DECIMAL)
public BigDecimal getBegCreditBal() {
return begCreditBal;
}
public void setBegCreditBal(BigDecimal begCreditBal) {
this.begCreditBal = begCreditBal;
}
@Basic
@Column(name = "EndDebitBal", nullable = true, precision = 3)
@ColumnDefault(DEF_DEFAULT_BIG_DECIMAL)
public BigDecimal getEndDebitBal() {
return endDebitBal;
}
public void setEndDebitBal(BigDecimal endDebitBal) {
this.endDebitBal = endDebitBal;
}
@Basic
@Column(name = "EndCreditBal", nullable = true, precision = 3)
@ColumnDefault(DEF_DEFAULT_BIG_DECIMAL)
public BigDecimal getEndCreditBal() {
return endCreditBal;
}
public void setEndCreditBal(BigDecimal endCreditBal) {
this.endCreditBal = endCreditBal;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
CustBalanceStd that = (CustBalanceStd) o;
return periodId == that.periodId &&
Objects.equals(balanceId, that.balanceId) &&
Objects.equals(acctCode, that.acctCode) &&
Objects.equals(customerCode, that.customerCode) &&
Objects.equals(begBal, that.begBal) &&
Objects.equals(debitBal, that.debitBal) &&
Objects.equals(creditBal, that.creditBal) &&
Objects.equals(yearDebitBal, that.yearDebitBal) &&
Objects.equals(yearCreditBal, that.yearCreditBal) &&
Objects.equals(endBal, that.endBal) &&
Objects.equals(begDebitBal, that.begDebitBal) &&
Objects.equals(begCreditBal, that.begCreditBal) &&
Objects.equals(endDebitBal, that.endDebitBal) &&
Objects.equals(endCreditBal, that.endCreditBal);
}
@Override
public int hashCode() {
return Objects.hash(balanceId, periodId, acctCode, customerCode, begBal, debitBal, creditBal, yearDebitBal, yearCreditBal, endBal, begDebitBal, begCreditBal, endDebitBal, endCreditBal);
}
}
package pwc.taxtech.vat.entity;
import org.hibernate.annotations.ColumnDefault;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import java.math.BigDecimal;
import java.util.Objects;
import static pwc.taxtech.Const.*;
@Entity
public class CustBalanceStdManual {
private String balanceId;
private long periodId;
private String acctCode;
private String customerCode;
private BigDecimal begBal;
private BigDecimal begDebitBal;
private BigDecimal begCreditBal;
private BigDecimal debitBal;
private BigDecimal creditBal;
private BigDecimal yearDebitBal;
private BigDecimal yearCreditBal;
private BigDecimal endBal;
private BigDecimal endDebitBal;
private BigDecimal endCreditBal;
@Id
@Column(name = "BalanceID", nullable = false, length = 128)
@ColumnDefault(DEF_DEFAULT_STRING)
public String getBalanceId() {
return balanceId;
}
public void setBalanceId(String balanceId) {
this.balanceId = balanceId;
}
@Basic
@Column(name = "PeriodID", nullable = false)
@ColumnDefault(DEF_DEFAULT_NUMBER)
public long getPeriodId() {
return periodId;
}
public void setPeriodId(long periodId) {
this.periodId = periodId;
}
@Basic
@Column(name = "AcctCode", nullable = false, length = 50)
@ColumnDefault(DEF_DEFAULT_STRING)
public String getAcctCode() {
return acctCode;
}
public void setAcctCode(String acctCode) {
this.acctCode = acctCode;
}
@Basic
@Column(name = "CustomerCode", nullable = true, length = 50)
@ColumnDefault(DEF_DEFAULT_STRING)
public String getCustomerCode() {
return customerCode;
}
public void setCustomerCode(String customerCode) {
this.customerCode = customerCode;
}
@Basic
@Column(name = "BegBal", nullable = true, precision = 3)
@ColumnDefault(DEF_DEFAULT_BIG_DECIMAL)
public BigDecimal getBegBal() {
return begBal;
}
public void setBegBal(BigDecimal begBal) {
this.begBal = begBal;
}
@Basic
@Column(name = "BegDebitBal", nullable = true, precision = 3)
@ColumnDefault(DEF_DEFAULT_BIG_DECIMAL)
public BigDecimal getBegDebitBal() {
return begDebitBal;
}
public void setBegDebitBal(BigDecimal begDebitBal) {
this.begDebitBal = begDebitBal;
}
@Basic
@Column(name = "BegCreditBal", nullable = true, precision = 3)
@ColumnDefault(DEF_DEFAULT_BIG_DECIMAL)
public BigDecimal getBegCreditBal() {
return begCreditBal;
}
public void setBegCreditBal(BigDecimal begCreditBal) {
this.begCreditBal = begCreditBal;
}
@Basic
@Column(name = "DebitBal", nullable = true, precision = 3)
@ColumnDefault(DEF_DEFAULT_BIG_DECIMAL)
public BigDecimal getDebitBal() {
return debitBal;
}
public void setDebitBal(BigDecimal debitBal) {
this.debitBal = debitBal;
}
@Basic
@Column(name = "CreditBal", nullable = true, precision = 3)
@ColumnDefault(DEF_DEFAULT_BIG_DECIMAL)
public BigDecimal getCreditBal() {
return creditBal;
}
public void setCreditBal(BigDecimal creditBal) {
this.creditBal = creditBal;
}
@Basic
@Column(name = "YearDebitBal", nullable = true, precision = 3)
@ColumnDefault(DEF_DEFAULT_BIG_DECIMAL)
public BigDecimal getYearDebitBal() {
return yearDebitBal;
}
public void setYearDebitBal(BigDecimal yearDebitBal) {
this.yearDebitBal = yearDebitBal;
}
@Basic
@Column(name = "YearCreditBal", nullable = true, precision = 3)
@ColumnDefault(DEF_DEFAULT_BIG_DECIMAL)
public BigDecimal getYearCreditBal() {
return yearCreditBal;
}
public void setYearCreditBal(BigDecimal yearCreditBal) {
this.yearCreditBal = yearCreditBal;
}
@Basic
@Column(name = "EndBal", nullable = true, precision = 3)
@ColumnDefault(DEF_DEFAULT_BIG_DECIMAL)
public BigDecimal getEndBal() {
return endBal;
}
public void setEndBal(BigDecimal endBal) {
this.endBal = endBal;
}
@Basic
@Column(name = "EndDebitBal", nullable = true, precision = 3)
@ColumnDefault(DEF_DEFAULT_BIG_DECIMAL)
public BigDecimal getEndDebitBal() {
return endDebitBal;
}
public void setEndDebitBal(BigDecimal endDebitBal) {
this.endDebitBal = endDebitBal;
}
@Basic
@Column(name = "EndCreditBal", nullable = true, precision = 3)
@ColumnDefault(DEF_DEFAULT_BIG_DECIMAL)
public BigDecimal getEndCreditBal() {
return endCreditBal;
}
public void setEndCreditBal(BigDecimal endCreditBal) {
this.endCreditBal = endCreditBal;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
CustBalanceStdManual that = (CustBalanceStdManual) o;
return periodId == that.periodId &&
Objects.equals(balanceId, that.balanceId) &&
Objects.equals(acctCode, that.acctCode) &&
Objects.equals(customerCode, that.customerCode) &&
Objects.equals(begBal, that.begBal) &&
Objects.equals(begDebitBal, that.begDebitBal) &&
Objects.equals(begCreditBal, that.begCreditBal) &&
Objects.equals(debitBal, that.debitBal) &&
Objects.equals(creditBal, that.creditBal) &&
Objects.equals(yearDebitBal, that.yearDebitBal) &&
Objects.equals(yearCreditBal, that.yearCreditBal) &&
Objects.equals(endBal, that.endBal) &&
Objects.equals(endDebitBal, that.endDebitBal) &&
Objects.equals(endCreditBal, that.endCreditBal);
}
@Override
public int hashCode() {
return Objects.hash(balanceId, periodId, acctCode, customerCode, begBal, begDebitBal, begCreditBal, debitBal, creditBal, yearDebitBal, yearCreditBal, endBal, endDebitBal, endCreditBal);
}
}
package pwc.taxtech.vat.entity;
import org.hibernate.annotations.ColumnDefault;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import java.math.BigDecimal;
import java.sql.Date;
import java.util.Objects;
import static pwc.taxtech.Const.*;
@Entity
public class CustomsInvoice {
private String customsId;
private String payNum;
private Date issueDate;
private BigDecimal invoiceTaxAmount;
private BigDecimal invoiceAmount;
private String auditResult;
private Date createTime;
private Integer periodId;
private String creatorId;
private Integer status;
private Integer partAccntedPeriod;
private Integer accntedPeriod;
@Id
@Column(name = "CustomsId", nullable = false, length = 128)
@ColumnDefault(DEF_DEFAULT_STRING)
public String getCustomsId() {
return customsId;
}
public void setCustomsId(String customsId) {
this.customsId = customsId;
}
@Basic
@Column(name = "PayNum", nullable = true, length = 200)
@ColumnDefault(DEF_DEFAULT_STRING)
public String getPayNum() {
return payNum;
}
public void setPayNum(String payNum) {
this.payNum = payNum;
}
@Basic
@Column(name = "IssueDate", nullable = true, columnDefinition = DEF_DEFAULT_DATE)
public Date getIssueDate() {
return issueDate;
}
public void setIssueDate(Date issueDate) {
this.issueDate = issueDate;
}
@Basic
@Column(name = "InvoiceTaxAmount", nullable = true, precision = 3)
@ColumnDefault(DEF_DEFAULT_BIG_DECIMAL)
public BigDecimal getInvoiceTaxAmount() {
return invoiceTaxAmount;
}
public void setInvoiceTaxAmount(BigDecimal invoiceTaxAmount) {
this.invoiceTaxAmount = invoiceTaxAmount;
}
@Basic
@Column(name = "InvoiceAmount", nullable = true, precision = 3)
@ColumnDefault(DEF_DEFAULT_BIG_DECIMAL)
public BigDecimal getInvoiceAmount() {
return invoiceAmount;
}
public void setInvoiceAmount(BigDecimal invoiceAmount) {
this.invoiceAmount = invoiceAmount;
}
@Basic
@Column(name = "AuditResult", nullable = true, columnDefinition = DEF_BIG_STRING)
public String getAuditResult() {
return auditResult;
}
public void setAuditResult(String auditResult) {
this.auditResult = auditResult;
}
@Basic
@Column(name = "CreateTime", nullable = true, columnDefinition = DEF_DEFAULT_DATE)
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
@Basic
@Column(name = "PeriodId", nullable = true)
@ColumnDefault(DEF_DEFAULT_NUMBER)
public Integer getPeriodId() {
return periodId;
}
public void setPeriodId(Integer periodId) {
this.periodId = periodId;
}
@Basic
@Column(name = "CreatorID", nullable = true, length = 128)
@ColumnDefault(DEF_DEFAULT_STRING)
public String getCreatorId() {
return creatorId;
}
public void setCreatorId(String creatorId) {
this.creatorId = creatorId;
}
@Basic
@Column(name = "Status", nullable = true)
@ColumnDefault(DEF_DEFAULT_NUMBER)
public Integer getStatus() {
return status;
}
public void setStatus(Integer status) {
this.status = status;
}
@Basic
@Column(name = "PartAccntedPeriod", nullable = true)
@ColumnDefault(DEF_DEFAULT_NUMBER)
public Integer getPartAccntedPeriod() {
return partAccntedPeriod;
}
public void setPartAccntedPeriod(Integer partAccntedPeriod) {
this.partAccntedPeriod = partAccntedPeriod;
}
@Basic
@Column(name = "AccntedPeriod", nullable = true)
@ColumnDefault(DEF_DEFAULT_NUMBER)
public Integer getAccntedPeriod() {
return accntedPeriod;
}
public void setAccntedPeriod(Integer accntedPeriod) {
this.accntedPeriod = accntedPeriod;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
CustomsInvoice that = (CustomsInvoice) o;
return Objects.equals(customsId, that.customsId) &&
Objects.equals(payNum, that.payNum) &&
Objects.equals(issueDate, that.issueDate) &&
Objects.equals(invoiceTaxAmount, that.invoiceTaxAmount) &&
Objects.equals(invoiceAmount, that.invoiceAmount) &&
Objects.equals(auditResult, that.auditResult) &&
Objects.equals(createTime, that.createTime) &&
Objects.equals(periodId, that.periodId) &&
Objects.equals(creatorId, that.creatorId) &&
Objects.equals(status, that.status) &&
Objects.equals(partAccntedPeriod, that.partAccntedPeriod) &&
Objects.equals(accntedPeriod, that.accntedPeriod);
}
@Override
public int hashCode() {
return Objects.hash(customsId, payNum, issueDate, invoiceTaxAmount, invoiceAmount, auditResult, createTime, periodId, creatorId, status, partAccntedPeriod, accntedPeriod);
}
}
package pwc.taxtech.vat.entity;
import org.hibernate.annotations.ColumnDefault;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.math.BigDecimal;
import java.sql.Date;
import java.util.Objects;
import static pwc.taxtech.Const.*;
@Entity
@Table(name = "data_source", schema = PROJECT_SCHEMA, catalog = "")
public class DataSource {
private long id;
private int type;
private String name;
private BigDecimal amount;
private String description;
private String keyValueDataId;
private String createBy;
private Date createTime;
private String updateBy;
private Date updateTime;
private String rowName;
private String columnName;
private int rowIndex;
private String remapBatchId;
private int columnIndex;
private long cellTemplateId;
private int period;
@Id
@Column(name = "id", nullable = false)
@ColumnDefault(DEF_DEFAULT_NUMBER)
public long getId() {
return id;
}
public void setId(long id) {
this.id = id;
}
@Basic
@Column(name = "type", nullable = false)
@ColumnDefault(DEF_DEFAULT_NUMBER)
public int getType() {
return type;
}
public void setType(int type) {
this.type = type;
}
@Basic
@Column(name = "name", nullable = false, length = 1000)
@ColumnDefault(DEF_DEFAULT_STRING)
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
@Basic
@Column(name = "amount", nullable = false, precision = 4)
@ColumnDefault(DEF_DEFAULT_BIG_DECIMAL)
public BigDecimal getAmount() {
return amount;
}
public void setAmount(BigDecimal amount) {
this.amount = amount;
}
@Basic
@Column(name = "description", nullable = false, length = 1000)
@ColumnDefault(DEF_DEFAULT_STRING)
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
@Basic
@Column(name = "key_value_data_id", nullable = false, length = 128)
@ColumnDefault(DEF_DEFAULT_STRING)
public String getKeyValueDataId() {
return keyValueDataId;
}
public void setKeyValueDataId(String keyValueDataId) {
this.keyValueDataId = keyValueDataId;
}
@Basic
@Column(name = "create_by", nullable = false, length = 128)
@ColumnDefault(DEF_DEFAULT_STRING)
public String getCreateBy() {
return createBy;
}
public void setCreateBy(String createBy) {
this.createBy = createBy;
}
@Basic
@Column(name = "create_time", nullable = false, columnDefinition = DEF_DEFAULT_DATE)
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
@Basic
@Column(name = "update_by", nullable = false, length = 128)
@ColumnDefault(DEF_DEFAULT_STRING)
public String getUpdateBy() {
return updateBy;
}
public void setUpdateBy(String updateBy) {
this.updateBy = updateBy;
}
@Basic
@Column(name = "update_time", nullable = false, columnDefinition = DEF_DEFAULT_DATE)
public Date getUpdateTime() {
return updateTime;
}
public void setUpdateTime(Date updateTime) {
this.updateTime = updateTime;
}
@Basic
@Column(name = "row_name", nullable = false, length = 1000)
@ColumnDefault(DEF_DEFAULT_STRING)
public String getRowName() {
return rowName;
}
public void setRowName(String rowName) {
this.rowName = rowName;
}
@Basic
@Column(name = "column_name", nullable = false, length = 1000)
@ColumnDefault(DEF_DEFAULT_STRING)
public String getColumnName() {
return columnName;
}
public void setColumnName(String columnName) {
this.columnName = columnName;
}
@Basic
@Column(name = "row_index", nullable = false)
@ColumnDefault(DEF_DEFAULT_NUMBER)
public int getRowIndex() {
return rowIndex;
}
public void setRowIndex(int rowIndex) {
this.rowIndex = rowIndex;
}
@Basic
@Column(name = "remap_batch_id", nullable = false, length = 128)
@ColumnDefault(DEF_DEFAULT_STRING)
public String getRemapBatchId() {
return remapBatchId;
}
public void setRemapBatchId(String remapBatchId) {
this.remapBatchId = remapBatchId;
}
@Basic
@Column(name = "column_index", nullable = false)
@ColumnDefault(DEF_DEFAULT_NUMBER)
public int getColumnIndex() {
return columnIndex;
}
public void setColumnIndex(int columnIndex) {
this.columnIndex = columnIndex;
}
@Basic
@Column(name = "cell_template_id", nullable = false)
@ColumnDefault(DEF_DEFAULT_NUMBER)
public long getCellTemplateId() {
return cellTemplateId;
}
public void setCellTemplateId(long cellTemplateId) {
this.cellTemplateId = cellTemplateId;
}
@Basic
@Column(name = "period", nullable = false)
@ColumnDefault(DEF_DEFAULT_NUMBER)
public int getPeriod() {
return period;
}
public void setPeriod(int period) {
this.period = period;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
DataSource that = (DataSource) o;
return id == that.id &&
type == that.type &&
rowIndex == that.rowIndex &&
columnIndex == that.columnIndex &&
cellTemplateId == that.cellTemplateId &&
period == that.period &&
Objects.equals(name, that.name) &&
Objects.equals(amount, that.amount) &&
Objects.equals(description, that.description) &&
Objects.equals(keyValueDataId, that.keyValueDataId) &&
Objects.equals(createBy, that.createBy) &&
Objects.equals(createTime, that.createTime) &&
Objects.equals(updateBy, that.updateBy) &&
Objects.equals(updateTime, that.updateTime) &&
Objects.equals(rowName, that.rowName) &&
Objects.equals(columnName, that.columnName) &&
Objects.equals(remapBatchId, that.remapBatchId);
}
@Override
public int hashCode() {
return Objects.hash(id, type, name, amount, description, keyValueDataId, createBy, createTime, updateBy, updateTime, rowName, columnName, rowIndex, remapBatchId, columnIndex, cellTemplateId, period);
}
}
package pwc.taxtech.vat.entity;
import org.hibernate.annotations.ColumnDefault;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Objects;
import static pwc.taxtech.Const.DEF_DEFAULT_NUMBER;
import static pwc.taxtech.Const.DEF_DEFAULT_STRING;
import static pwc.taxtech.Const.PROJECT_SCHEMA;
@Entity
@Table(name = "data_source_detail", schema = PROJECT_SCHEMA, catalog = "")
public class DataSourceDetail {
private long id;
private long dataSourceId;
private int dataSourceType;
private String itemValue;
@Id
@Column(name = "id", nullable = false)
@ColumnDefault(DEF_DEFAULT_NUMBER)
public long getId() {
return id;
}
public void setId(long id) {
this.id = id;
}
@Basic
@Column(name = "data_source_id", nullable = false)
@ColumnDefault(DEF_DEFAULT_NUMBER)
public long getDataSourceId() {
return dataSourceId;
}
public void setDataSourceId(long dataSourceId) {
this.dataSourceId = dataSourceId;
}
@Basic
@Column(name = "data_source_type", nullable = false)
@ColumnDefault(DEF_DEFAULT_NUMBER)
public int getDataSourceType() {
return dataSourceType;
}
public void setDataSourceType(int dataSourceType) {
this.dataSourceType = dataSourceType;
}
@Basic
@Column(name = "item_value", nullable = false, length = 128)
@ColumnDefault(DEF_DEFAULT_STRING)
public String getItemValue() {
return itemValue;
}
public void setItemValue(String itemValue) {
this.itemValue = itemValue;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
DataSourceDetail that = (DataSourceDetail) o;
return id == that.id &&
dataSourceId == that.dataSourceId &&
dataSourceType == that.dataSourceType &&
Objects.equals(itemValue, that.itemValue);
}
@Override
public int hashCode() {
return Objects.hash(id, dataSourceId, dataSourceType, itemValue);
}
}
package pwc.taxtech.vat.entity;
import org.hibernate.annotations.ColumnDefault;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import java.sql.Date;
import java.util.Objects;
import static pwc.taxtech.Const.*;
@Entity
public class EnterpriseAccount {
private String id;
private String acctCode;
private String name;
private String parentCode;
private String fullName;
private Integer acctProp;
private Integer subProp;
private Integer acctLevel;
private int direction;
private Short isLeaf;
private short isActive;
private String englishName;
private String stdCode;
private String enterpriseAccountSetId;
private Integer isDummy;
private Integer isInVoucher;
private String creatorId;
private String updatorId;
private Date createTime;
private Date updateTime;
@Id
@Column(name = "ID", nullable = false, length = 128)
@ColumnDefault(DEF_DEFAULT_STRING)
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
@Basic
@Column(name = "AcctCode", nullable = false, length = 50)
@ColumnDefault(DEF_DEFAULT_STRING)
public String getAcctCode() {
return acctCode;
}
public void setAcctCode(String acctCode) {
this.acctCode = acctCode;
}
@Basic
@Column(name = "Name", nullable = false, length = 50)
@ColumnDefault(DEF_DEFAULT_STRING)
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
@Basic
@Column(name = "ParentCode", nullable = true, length = 50)
@ColumnDefault(DEF_DEFAULT_STRING)
public String getParentCode() {
return parentCode;
}
public void setParentCode(String parentCode) {
this.parentCode = parentCode;
}
@Basic
@Column(name = "FullName", nullable = true, length = 200)
@ColumnDefault(DEF_DEFAULT_STRING)
public String getFullName() {
return fullName;
}
public void setFullName(String fullName) {
this.fullName = fullName;
}
@Basic
@Column(name = "AcctProp", nullable = true)
@ColumnDefault(DEF_DEFAULT_NUMBER)
public Integer getAcctProp() {
return acctProp;
}
public void setAcctProp(Integer acctProp) {
this.acctProp = acctProp;
}
@Basic
@Column(name = "SubProp", nullable = true)
@ColumnDefault(DEF_DEFAULT_NUMBER)
public Integer getSubProp() {
return subProp;
}
public void setSubProp(Integer subProp) {
this.subProp = subProp;
}
@Basic
@Column(name = "AcctLevel", nullable = true)
@ColumnDefault(DEF_DEFAULT_NUMBER)
public Integer getAcctLevel() {
return acctLevel;
}
public void setAcctLevel(Integer acctLevel) {
this.acctLevel = acctLevel;
}
@Basic
@Column(name = "Direction", nullable = false)
@ColumnDefault(DEF_DEFAULT_NUMBER)
public int getDirection() {
return direction;
}
public void setDirection(int direction) {
this.direction = direction;
}
@Basic
@Column(name = "IsLeaf", nullable = true)
public Short getIsLeaf() {
return isLeaf;
}
public void setIsLeaf(Short isLeaf) {
this.isLeaf = isLeaf;
}
@Basic
@Column(name = "IsActive", nullable = false)
public short getIsActive() {
return isActive;
}
public void setIsActive(short isActive) {
this.isActive = isActive;
}
@Basic
@Column(name = "EnglishName", nullable = true, length = 200)
@ColumnDefault(DEF_DEFAULT_STRING)
public String getEnglishName() {
return englishName;
}
public void setEnglishName(String englishName) {
this.englishName = englishName;
}
@Basic
@Column(name = "StdCode", nullable = true, length = 50)
@ColumnDefault(DEF_DEFAULT_STRING)
public String getStdCode() {
return stdCode;
}
public void setStdCode(String stdCode) {
this.stdCode = stdCode;
}
@Basic
@Column(name = "EnterpriseAccountSetID", nullable = false, length = 128)
@ColumnDefault(DEF_DEFAULT_STRING)
public String getEnterpriseAccountSetId() {
return enterpriseAccountSetId;
}
public void setEnterpriseAccountSetId(String enterpriseAccountSetId) {
this.enterpriseAccountSetId = enterpriseAccountSetId;
}
@Basic
@Column(name = "IsDummy", nullable = true)
@ColumnDefault(DEF_DEFAULT_NUMBER)
public Integer getIsDummy() {
return isDummy;
}
public void setIsDummy(Integer isDummy) {
this.isDummy = isDummy;
}
@Basic
@Column(name = "IsInVoucher", nullable = true)
@ColumnDefault(DEF_DEFAULT_NUMBER)
public Integer getIsInVoucher() {
return isInVoucher;
}
public void setIsInVoucher(Integer isInVoucher) {
this.isInVoucher = isInVoucher;
}
@Basic
@Column(name = "CreatorID", nullable = false, length = 128)
@ColumnDefault(DEF_DEFAULT_STRING)
public String getCreatorId() {
return creatorId;
}
public void setCreatorId(String creatorId) {
this.creatorId = creatorId;
}
@Basic
@Column(name = "UpdatorID", nullable = false, length = 128)
@ColumnDefault(DEF_DEFAULT_STRING)
public String getUpdatorId() {
return updatorId;
}
public void setUpdatorId(String updatorId) {
this.updatorId = updatorId;
}
@Basic
@Column(name = "CreateTime", nullable = false, columnDefinition = DEF_DEFAULT_DATE)
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
@Basic
@Column(name = "UpdateTime", nullable = false, columnDefinition = DEF_DEFAULT_DATE)
public Date getUpdateTime() {
return updateTime;
}
public void setUpdateTime(Date updateTime) {
this.updateTime = updateTime;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
EnterpriseAccount that = (EnterpriseAccount) o;
return direction == that.direction &&
isActive == that.isActive &&
Objects.equals(id, that.id) &&
Objects.equals(acctCode, that.acctCode) &&
Objects.equals(name, that.name) &&
Objects.equals(parentCode, that.parentCode) &&
Objects.equals(fullName, that.fullName) &&
Objects.equals(acctProp, that.acctProp) &&
Objects.equals(subProp, that.subProp) &&
Objects.equals(acctLevel, that.acctLevel) &&
Objects.equals(isLeaf, that.isLeaf) &&
Objects.equals(englishName, that.englishName) &&
Objects.equals(stdCode, that.stdCode) &&
Objects.equals(enterpriseAccountSetId, that.enterpriseAccountSetId) &&
Objects.equals(isDummy, that.isDummy) &&
Objects.equals(isInVoucher, that.isInVoucher) &&
Objects.equals(creatorId, that.creatorId) &&
Objects.equals(updatorId, that.updatorId) &&
Objects.equals(createTime, that.createTime) &&
Objects.equals(updateTime, that.updateTime);
}
@Override
public int hashCode() {
return Objects.hash(id, acctCode, name, parentCode, fullName, acctProp, subProp, acctLevel, direction, isLeaf, isActive, englishName, stdCode, enterpriseAccountSetId, isDummy, isInVoucher, creatorId, updatorId, createTime, updateTime);
}
}
package pwc.taxtech.vat.entity;
import org.hibernate.annotations.ColumnDefault;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import java.math.BigDecimal;
import java.sql.Date;
import java.util.Objects;
import static pwc.taxtech.Const.*;
@Entity
public class EntriesCheckDetailResult {
private String id;
private String resultId;
private int isDoubt;
private int isBigVoucher;
private String voucherId;
private String vid;
private Date date;
private String group;
private Integer period;
private String customerCode;
private String customerName;
private String summary;
private String acctCode;
private String stdCode;
private BigDecimal debit;
private BigDecimal credit;
private Long attach;
private String itemId;
private Integer importType;
private int isFiltered;
private int isRelevantAmt;
private Date createTime;
private Date updateTime;
@Id
@Column(name = "ID", nullable = false, length = 128)
@ColumnDefault(DEF_DEFAULT_STRING)
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
@Basic
@Column(name = "ResultID", nullable = false, length = 128)
@ColumnDefault(DEF_DEFAULT_STRING)
public String getResultId() {
return resultId;
}
public void setResultId(String resultId) {
this.resultId = resultId;
}
@Basic
@Column(name = "IsDoubt", nullable = false)
@ColumnDefault(DEF_DEFAULT_NUMBER)
public int getIsDoubt() {
return isDoubt;
}
public void setIsDoubt(int isDoubt) {
this.isDoubt = isDoubt;
}
@Basic
@Column(name = "IsBigVoucher", nullable = false)
@ColumnDefault(DEF_DEFAULT_NUMBER)
public int getIsBigVoucher() {
return isBigVoucher;
}
public void setIsBigVoucher(int isBigVoucher) {
this.isBigVoucher = isBigVoucher;
}
@Basic
@Column(name = "VoucherID", nullable = false, length = 128)
@ColumnDefault(DEF_DEFAULT_STRING)
public String getVoucherId() {
return voucherId;
}
public void setVoucherId(String voucherId) {
this.voucherId = voucherId;
}
@Basic
@Column(name = "VID", nullable = false, columnDefinition = DEF_BIG_STRING)
public String getVid() {
return vid;
}
public void setVid(String vid) {
this.vid = vid;
}
@Basic
@Column(name = B_Delimiter + "Date" + E_Delimiter, nullable = false, columnDefinition = DEF_DEFAULT_DATE)
public Date getDate() {
return date;
}
public void setDate(Date date) {
this.date = date;
}
@Basic
@Column(name = B_Delimiter + "Group" + E_Delimiter, nullable = true, length = 50)
@ColumnDefault(DEF_DEFAULT_STRING)
public String getGroup() {
return group;
}
public void setGroup(String group) {
this.group = group;
}
@Basic
@Column(name = "Period", nullable = true)
@ColumnDefault(DEF_DEFAULT_NUMBER)
public Integer getPeriod() {
return period;
}
public void setPeriod(Integer period) {
this.period = period;
}
@Basic
@Column(name = "CustomerCode", nullable = true, length = 50)
@ColumnDefault(DEF_DEFAULT_STRING)
public String getCustomerCode() {
return customerCode;
}
public void setCustomerCode(String customerCode) {
this.customerCode = customerCode;
}
@Basic
@Column(name = "CustomerName", nullable = true, length = 100)
@ColumnDefault(DEF_DEFAULT_STRING)
public String getCustomerName() {
return customerName;
}
public void setCustomerName(String customerName) {
this.customerName = customerName;
}
@Basic
@Column(name = "Summary", nullable = true, columnDefinition = DEF_BIG_STRING)
public String getSummary() {
return summary;
}
public void setSummary(String summary) {
this.summary = summary;
}
@Basic
@Column(name = "AcctCode", nullable = true, length = 50)
@ColumnDefault(DEF_DEFAULT_STRING)
public String getAcctCode() {
return acctCode;
}
public void setAcctCode(String acctCode) {
this.acctCode = acctCode;
}
@Basic
@Column(name = "StdCode", nullable = true, length = 50)
@ColumnDefault(DEF_DEFAULT_STRING)
public String getStdCode() {
return stdCode;
}
public void setStdCode(String stdCode) {
this.stdCode = stdCode;
}
@Basic
@Column(name = "Debit", nullable = true, precision = 3)
@ColumnDefault(DEF_DEFAULT_BIG_DECIMAL)
public BigDecimal getDebit() {
return debit;
}
public void setDebit(BigDecimal debit) {
this.debit = debit;
}
@Basic
@Column(name = "Credit", nullable = true, precision = 3)
@ColumnDefault(DEF_DEFAULT_BIG_DECIMAL)
public BigDecimal getCredit() {
return credit;
}
public void setCredit(BigDecimal credit) {
this.credit = credit;
}
@Basic
@Column(name = "Attach", nullable = true)
@ColumnDefault(DEF_DEFAULT_NUMBER)
public Long getAttach() {
return attach;
}
public void setAttach(Long attach) {
this.attach = attach;
}
@Basic
@Column(name = "ItemID", nullable = true, columnDefinition = DEF_BIG_STRING)
public String getItemId() {
return itemId;
}
public void setItemId(String itemId) {
this.itemId = itemId;
}
@Basic
@Column(name = "ImportType", nullable = true)
@ColumnDefault(DEF_DEFAULT_NUMBER)
public Integer getImportType() {
return importType;
}
public void setImportType(Integer importType) {
this.importType = importType;
}
@Basic
@Column(name = "IsFiltered", nullable = false)
@ColumnDefault(DEF_DEFAULT_NUMBER)
public int getIsFiltered() {
return isFiltered;
}
public void setIsFiltered(int isFiltered) {
this.isFiltered = isFiltered;
}
@Basic
@Column(name = "IsRelevantAmt", nullable = false)
@ColumnDefault(DEF_DEFAULT_NUMBER)
public int getIsRelevantAmt() {
return isRelevantAmt;
}
public void setIsRelevantAmt(int isRelevantAmt) {
this.isRelevantAmt = isRelevantAmt;
}
@Basic
@Column(name = "CreateTime", nullable = false, columnDefinition = DEF_DEFAULT_DATE)
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
@Basic
@Column(name = "UpdateTime", nullable = false, columnDefinition = DEF_DEFAULT_DATE)
public Date getUpdateTime() {
return updateTime;
}
public void setUpdateTime(Date updateTime) {
this.updateTime = updateTime;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
EntriesCheckDetailResult that = (EntriesCheckDetailResult) o;
return isDoubt == that.isDoubt &&
isBigVoucher == that.isBigVoucher &&
isFiltered == that.isFiltered &&
isRelevantAmt == that.isRelevantAmt &&
Objects.equals(id, that.id) &&
Objects.equals(resultId, that.resultId) &&
Objects.equals(voucherId, that.voucherId) &&
Objects.equals(vid, that.vid) &&
Objects.equals(date, that.date) &&
Objects.equals(group, that.group) &&
Objects.equals(period, that.period) &&
Objects.equals(customerCode, that.customerCode) &&
Objects.equals(customerName, that.customerName) &&
Objects.equals(summary, that.summary) &&
Objects.equals(acctCode, that.acctCode) &&
Objects.equals(stdCode, that.stdCode) &&
Objects.equals(debit, that.debit) &&
Objects.equals(credit, that.credit) &&
Objects.equals(attach, that.attach) &&
Objects.equals(itemId, that.itemId) &&
Objects.equals(importType, that.importType) &&
Objects.equals(createTime, that.createTime) &&
Objects.equals(updateTime, that.updateTime);
}
@Override
public int hashCode() {
return Objects.hash(id, resultId, isDoubt, isBigVoucher, voucherId, vid, date, group, period, customerCode, customerName, summary, acctCode, stdCode, debit, credit, attach, itemId, importType, isFiltered, isRelevantAmt, createTime, updateTime);
}
}
package pwc.taxtech.vat.entity;
import org.hibernate.annotations.ColumnDefault;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import java.io.Serializable;
import java.util.Objects;
import static pwc.taxtech.Const.DEF_DEFAULT_NUMBER;
import static pwc.taxtech.Const.DEF_DEFAULT_STRING;
public class FormulaCachePK implements Serializable {
private String id;
private int period;
@Id
@Column(name = "ID", nullable = false, length = 128)
@ColumnDefault(DEF_DEFAULT_STRING)
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
@Id
@Column(name = "Period", nullable = false)
@ColumnDefault(DEF_DEFAULT_NUMBER)
public int getPeriod() {
return period;
}
public void setPeriod(int period) {
this.period = period;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
FormulaCachePK that = (FormulaCachePK) o;
return period == that.period &&
Objects.equals(id, that.id);
}
@Override
public int hashCode() {
return Objects.hash(id, period);
}
}
package pwc.taxtech.vat.entity;
import org.hibernate.annotations.ColumnDefault;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import java.sql.Date;
import java.util.Objects;
import static pwc.taxtech.Const.DEF_DEFAULT_DATE;
import static pwc.taxtech.Const.DEF_DEFAULT_STRING;
@Entity
public class GoodsMapping {
private String id;
private String custGoodsName;
private String stdGoodsName;
private String creatorId;
private Date createTime;
private Date updateTime;
@Id
@Column(name = "ID", nullable = false, length = 128)
@ColumnDefault(DEF_DEFAULT_STRING)
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
@Basic
@Column(name = "CustGoodsName", nullable = true, length = 50)
@ColumnDefault(DEF_DEFAULT_STRING)
public String getCustGoodsName() {
return custGoodsName;
}
public void setCustGoodsName(String custGoodsName) {
this.custGoodsName = custGoodsName;
}
@Basic
@Column(name = "StdGoodsName", nullable = true, length = 50)
@ColumnDefault(DEF_DEFAULT_STRING)
public String getStdGoodsName() {
return stdGoodsName;
}
public void setStdGoodsName(String stdGoodsName) {
this.stdGoodsName = stdGoodsName;
}
@Basic
@Column(name = "CreatorID", nullable = true, length = 128)
@ColumnDefault(DEF_DEFAULT_STRING)
public String getCreatorId() {
return creatorId;
}
public void setCreatorId(String creatorId) {
this.creatorId = creatorId;
}
@Basic
@Column(name = "CreateTime", nullable = false, columnDefinition = DEF_DEFAULT_DATE)
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
@Basic
@Column(name = "UpdateTime", nullable = false, columnDefinition = DEF_DEFAULT_DATE)
public Date getUpdateTime() {
return updateTime;
}
public void setUpdateTime(Date updateTime) {
this.updateTime = updateTime;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
GoodsMapping that = (GoodsMapping) o;
return Objects.equals(id, that.id) &&
Objects.equals(custGoodsName, that.custGoodsName) &&
Objects.equals(stdGoodsName, that.stdGoodsName) &&
Objects.equals(creatorId, that.creatorId) &&
Objects.equals(createTime, that.createTime) &&
Objects.equals(updateTime, that.updateTime);
}
@Override
public int hashCode() {
return Objects.hash(id, custGoodsName, stdGoodsName, creatorId, createTime, updateTime);
}
}
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
package pwc.taxtech.vat.repository;
import org.springframework.data.repository.CrudRepository;
import pwc.taxtech.vat.entity.AccountRemap;
public interface AccountRemapRepository extends CrudRepository<AccountRemap, String> {}
\ No newline at end of file
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment