first commit 04/09/2024
This commit is contained in:
+290
@@ -0,0 +1,290 @@
|
||||
package com.saslpay.entities;
|
||||
|
||||
import javax.persistence.*;
|
||||
import java.sql.Timestamp;
|
||||
|
||||
@Entity
|
||||
@Table(name = "t24Data")
|
||||
public class T24DataEntity {
|
||||
private String accountId;
|
||||
private String category;
|
||||
private String customerNo;
|
||||
private String customerName;
|
||||
private String customerType;
|
||||
private String customerId;
|
||||
private String phoneNumber;
|
||||
private String branch;
|
||||
private String branchName;
|
||||
private String dob;
|
||||
private String emailAddress;
|
||||
private String gender;
|
||||
private String acStatus;
|
||||
private Float accountBalance;
|
||||
private Float maxCreditBalance;
|
||||
private Float maxDebitBalance;
|
||||
private String debitAllowed;
|
||||
private String creditAllowed;
|
||||
private String ussdSubscribed;
|
||||
private Timestamp timeStamp;
|
||||
|
||||
@Id
|
||||
@Column(name = "accountId", nullable = false, length = 13)
|
||||
public String getAccountId() {
|
||||
return accountId;
|
||||
}
|
||||
|
||||
public void setAccountId(String accountId) {
|
||||
this.accountId = accountId;
|
||||
}
|
||||
|
||||
@Basic
|
||||
@Column(name = "category", nullable = true, length = 5)
|
||||
public String getCategory() {
|
||||
return category;
|
||||
}
|
||||
|
||||
public void setCategory(String category) {
|
||||
this.category = category;
|
||||
}
|
||||
|
||||
@Basic
|
||||
@Column(name = "customerNo", nullable = false, length = 35)
|
||||
public String getCustomerNo() {
|
||||
return customerNo;
|
||||
}
|
||||
|
||||
public void setCustomerNo(String customerNo) {
|
||||
this.customerNo = customerNo;
|
||||
}
|
||||
|
||||
@Basic
|
||||
@Column(name = "customerName", nullable = true, length = 35)
|
||||
public String getCustomerName() {
|
||||
return customerName;
|
||||
}
|
||||
|
||||
public void setCustomerName(String customerName) {
|
||||
this.customerName = customerName;
|
||||
}
|
||||
|
||||
@Basic
|
||||
@Column(name = "customerType", nullable = true, length = 2)
|
||||
public String getCustomerType() {
|
||||
return customerType;
|
||||
}
|
||||
|
||||
public void setCustomerType(String customerType) {
|
||||
this.customerType = customerType;
|
||||
}
|
||||
|
||||
@Basic
|
||||
@Column(name = "customerId", nullable = true, length = 35)
|
||||
public String getCustomerId() {
|
||||
return customerId;
|
||||
}
|
||||
|
||||
public void setCustomerId(String customerId) {
|
||||
this.customerId = customerId;
|
||||
}
|
||||
|
||||
@Basic
|
||||
@Column(name = "phoneNumber", nullable = true, length = 16)
|
||||
public String getPhoneNumber() {
|
||||
return phoneNumber;
|
||||
}
|
||||
|
||||
public void setPhoneNumber(String phoneNumber) {
|
||||
this.phoneNumber = phoneNumber;
|
||||
}
|
||||
|
||||
@Basic
|
||||
@Column(name = "branch", nullable = true, length = 35)
|
||||
public String getBranch() {
|
||||
return branch;
|
||||
}
|
||||
|
||||
public void setBranch(String branch) {
|
||||
this.branch = branch;
|
||||
}
|
||||
|
||||
@Basic
|
||||
@Column(name = "branchName", nullable = true, length = 35)
|
||||
public String getBranchName() {
|
||||
return branchName;
|
||||
}
|
||||
|
||||
public void setBranchName(String branchName) {
|
||||
this.branchName = branchName;
|
||||
}
|
||||
|
||||
@Basic
|
||||
@Column(name = "dob", nullable = true)
|
||||
public String getDob() {
|
||||
return dob;
|
||||
}
|
||||
|
||||
public void setDob(String dob) {
|
||||
this.dob = dob;
|
||||
}
|
||||
|
||||
@Basic
|
||||
@Column(name = "emailAddress", nullable = true, length = 35)
|
||||
public String getEmailAddress() {
|
||||
return emailAddress;
|
||||
}
|
||||
|
||||
public void setEmailAddress(String emailAddress) {
|
||||
this.emailAddress = emailAddress;
|
||||
}
|
||||
|
||||
@Basic
|
||||
@Column(name = "gender", nullable = true, length = 10)
|
||||
public String getGender() {
|
||||
return gender;
|
||||
}
|
||||
|
||||
public void setGender(String gender) {
|
||||
this.gender = gender;
|
||||
}
|
||||
|
||||
@Basic
|
||||
@Column(name = "acStatus", nullable = true, length = 11)
|
||||
public String getAcStatus() {
|
||||
return acStatus;
|
||||
}
|
||||
|
||||
public void setAcStatus(String acStatus) {
|
||||
this.acStatus = acStatus;
|
||||
}
|
||||
|
||||
@Basic
|
||||
@Column(name = "accountBalance", nullable = true, precision = 2)
|
||||
public Float getAccountBalance() {
|
||||
return accountBalance;
|
||||
}
|
||||
|
||||
public void setAccountBalance(Float accountBalance) {
|
||||
this.accountBalance = accountBalance;
|
||||
}
|
||||
|
||||
@Basic
|
||||
@Column(name = "maxCreditBalance", nullable = true, precision = 2)
|
||||
public Float getMaxCreditBalance() {
|
||||
return maxCreditBalance;
|
||||
}
|
||||
|
||||
public void setMaxCreditBalance(Float maxCreditBalance) {
|
||||
this.maxCreditBalance = maxCreditBalance;
|
||||
}
|
||||
|
||||
@Basic
|
||||
@Column(name = "maxDebitBalance", nullable = true, precision = 2)
|
||||
public Float getMaxDebitBalance() {
|
||||
return maxDebitBalance;
|
||||
}
|
||||
|
||||
public void setMaxDebitBalance(Float maxDebitBalance) {
|
||||
this.maxDebitBalance = maxDebitBalance;
|
||||
}
|
||||
|
||||
@Basic
|
||||
@Column(name = "debitAllowed", nullable = true, length = 11)
|
||||
public String getDebitAllowed() {
|
||||
return debitAllowed;
|
||||
}
|
||||
|
||||
public void setDebitAllowed(String debitAllowed) {
|
||||
this.debitAllowed = debitAllowed;
|
||||
}
|
||||
|
||||
@Basic
|
||||
@Column(name = "creditAllowed", nullable = true, length = 11)
|
||||
public String getCreditAllowed() {
|
||||
return creditAllowed;
|
||||
}
|
||||
|
||||
public void setCreditAllowed(String creditAllowed) {
|
||||
this.creditAllowed = creditAllowed;
|
||||
}
|
||||
|
||||
@Basic
|
||||
@Column(name = "ussdSubscribed", nullable = true, length = 2)
|
||||
public String getUssdSubscribed() {
|
||||
return ussdSubscribed;
|
||||
}
|
||||
|
||||
public void setUssdSubscribed(String ussdSubscribed) {
|
||||
this.ussdSubscribed = ussdSubscribed;
|
||||
}
|
||||
|
||||
@Basic
|
||||
@Column(name = "timeStamp", nullable = true)
|
||||
public Timestamp getTimeStamp() {
|
||||
return timeStamp;
|
||||
}
|
||||
|
||||
public void setTimeStamp(Timestamp timeStamp) {
|
||||
this.timeStamp = timeStamp;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) return true;
|
||||
if (o == null || getClass() != o.getClass()) return false;
|
||||
|
||||
T24DataEntity that = (T24DataEntity) o;
|
||||
|
||||
if (accountId != null ? !accountId.equals(that.accountId) : that.accountId != null) return false;
|
||||
if (category != null ? !category.equals(that.category) : that.category != null) return false;
|
||||
if (customerNo != null ? !customerNo.equals(that.customerNo) : that.customerNo != null) return false;
|
||||
if (customerName != null ? !customerName.equals(that.customerName) : that.customerName != null) return false;
|
||||
if (customerType != null ? !customerType.equals(that.customerType) : that.customerType != null) return false;
|
||||
if (customerId != null ? !customerId.equals(that.customerId) : that.customerId != null) return false;
|
||||
if (phoneNumber != null ? !phoneNumber.equals(that.phoneNumber) : that.phoneNumber != null) return false;
|
||||
if (branch != null ? !branch.equals(that.branch) : that.branch != null) return false;
|
||||
if (branchName != null ? !branchName.equals(that.branchName) : that.branchName != null) return false;
|
||||
if (dob != null ? !dob.equals(that.dob) : that.dob != null) return false;
|
||||
if (emailAddress != null ? !emailAddress.equals(that.emailAddress) : that.emailAddress != null) return false;
|
||||
if (gender != null ? !gender.equals(that.gender) : that.gender != null) return false;
|
||||
if (acStatus != null ? !acStatus.equals(that.acStatus) : that.acStatus != null) return false;
|
||||
if (accountBalance != null ? !accountBalance.equals(that.accountBalance) : that.accountBalance != null)
|
||||
return false;
|
||||
if (maxCreditBalance != null ? !maxCreditBalance.equals(that.maxCreditBalance) : that.maxCreditBalance != null)
|
||||
return false;
|
||||
if (maxDebitBalance != null ? !maxDebitBalance.equals(that.maxDebitBalance) : that.maxDebitBalance != null)
|
||||
return false;
|
||||
if (debitAllowed != null ? !debitAllowed.equals(that.debitAllowed) : that.debitAllowed != null) return false;
|
||||
if (creditAllowed != null ? !creditAllowed.equals(that.creditAllowed) : that.creditAllowed != null)
|
||||
return false;
|
||||
if (ussdSubscribed != null ? !ussdSubscribed.equals(that.ussdSubscribed) : that.ussdSubscribed != null)
|
||||
return false;
|
||||
if (timeStamp != null ? !timeStamp.equals(that.timeStamp) : that.timeStamp != null) return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
int result = accountId != null ? accountId.hashCode() : 0;
|
||||
result = 31 * result + (category != null ? category.hashCode() : 0);
|
||||
result = 31 * result + (customerNo != null ? customerNo.hashCode() : 0);
|
||||
result = 31 * result + (customerName != null ? customerName.hashCode() : 0);
|
||||
result = 31 * result + (customerType != null ? customerType.hashCode() : 0);
|
||||
result = 31 * result + (customerId != null ? customerId.hashCode() : 0);
|
||||
result = 31 * result + (phoneNumber != null ? phoneNumber.hashCode() : 0);
|
||||
result = 31 * result + (branch != null ? branch.hashCode() : 0);
|
||||
result = 31 * result + (branchName != null ? branchName.hashCode() : 0);
|
||||
result = 31 * result + (dob != null ? dob.hashCode() : 0);
|
||||
result = 31 * result + (emailAddress != null ? emailAddress.hashCode() : 0);
|
||||
result = 31 * result + (gender != null ? gender.hashCode() : 0);
|
||||
result = 31 * result + (acStatus != null ? acStatus.hashCode() : 0);
|
||||
result = 31 * result + (accountBalance != null ? accountBalance.hashCode() : 0);
|
||||
result = 31 * result + (maxCreditBalance != null ? maxCreditBalance.hashCode() : 0);
|
||||
result = 31 * result + (maxDebitBalance != null ? maxDebitBalance.hashCode() : 0);
|
||||
result = 31 * result + (debitAllowed != null ? debitAllowed.hashCode() : 0);
|
||||
result = 31 * result + (creditAllowed != null ? creditAllowed.hashCode() : 0);
|
||||
result = 31 * result + (ussdSubscribed != null ? ussdSubscribed.hashCode() : 0);
|
||||
result = 31 * result + (timeStamp != null ? timeStamp.hashCode() : 0);
|
||||
return result;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,294 @@
|
||||
package com.saslpay.entities;
|
||||
|
||||
import javax.persistence.*;
|
||||
import java.sql.Timestamp;
|
||||
|
||||
@Entity
|
||||
@Table(name = "transactionData", schema = "saslinterfacebkptest", catalog = "")
|
||||
public class TransactionDataEntity {
|
||||
private String txnRef;
|
||||
private String ftId;
|
||||
private String api;
|
||||
private String txnCode;
|
||||
private String hold;
|
||||
private String requestType;
|
||||
private String bankWallet;
|
||||
private String customerName;
|
||||
private String customerBranch;
|
||||
private String drAccount;
|
||||
private String crAccount;
|
||||
private String txnCurrency;
|
||||
private Float txnAmount;
|
||||
private Float txnCharge;
|
||||
private String txnNarration;
|
||||
private Float elevyCharge;
|
||||
private String processFlag;
|
||||
private String txnStatus;
|
||||
private Timestamp timeStamp;
|
||||
private String transactionType;
|
||||
|
||||
@Id
|
||||
@Column(name = "txnRef", nullable = false, length = 35)
|
||||
public String getTxnRef() {
|
||||
return txnRef;
|
||||
}
|
||||
|
||||
public void setTxnRef(String txnRef) {
|
||||
this.txnRef = txnRef;
|
||||
}
|
||||
|
||||
@Basic
|
||||
@Column(name = "ftId", nullable = false, length = 35)
|
||||
public String getFtId() {
|
||||
return ftId;
|
||||
}
|
||||
|
||||
public void setFtId(String ftId) {
|
||||
this.ftId = ftId;
|
||||
}
|
||||
|
||||
@Basic
|
||||
@Column(name = "api", nullable = false, length = 35)
|
||||
public String getApi() {
|
||||
return api;
|
||||
}
|
||||
|
||||
public void setApi(String api) {
|
||||
this.api = api;
|
||||
}
|
||||
|
||||
@Basic
|
||||
@Column(name = "txnCode", nullable = false, length = 35)
|
||||
public String getTxnCode() {
|
||||
return txnCode;
|
||||
}
|
||||
|
||||
public void setTxnCode(String txnCode) {
|
||||
this.txnCode = txnCode;
|
||||
}
|
||||
|
||||
@Basic
|
||||
@Column(name = "hold", nullable = false, length = 1)
|
||||
public String getHold() {
|
||||
return hold;
|
||||
}
|
||||
|
||||
public void setHold(String hold) {
|
||||
this.hold = hold;
|
||||
}
|
||||
|
||||
@Basic
|
||||
@Column(name = "requestType", nullable = false, length = 35)
|
||||
public String getRequestType() {
|
||||
return requestType;
|
||||
}
|
||||
|
||||
public void setRequestType(String requestType) {
|
||||
this.requestType = requestType;
|
||||
}
|
||||
|
||||
@Basic
|
||||
@Column(name = "bankWallet", nullable = true, length = 35)
|
||||
public String getBankWallet() {
|
||||
return bankWallet;
|
||||
}
|
||||
|
||||
public void setBankWallet(String bankWallet) {
|
||||
this.bankWallet = bankWallet;
|
||||
}
|
||||
|
||||
@Basic
|
||||
@Column(name = "customerName", nullable = true, length = 35)
|
||||
public String getCustomerName() {
|
||||
return customerName;
|
||||
}
|
||||
|
||||
public void setCustomerName(String customerName) {
|
||||
this.customerName = customerName;
|
||||
}
|
||||
|
||||
@Basic
|
||||
@Column(name = "customerBranch", nullable = true, length = 35)
|
||||
public String getCustomerBranch() {
|
||||
return customerBranch;
|
||||
}
|
||||
|
||||
public void setCustomerBranch(String customerBranch) {
|
||||
this.customerBranch = customerBranch;
|
||||
}
|
||||
|
||||
@Basic
|
||||
@Column(name = "drAccount", nullable = false, precision = 0, length = 35)
|
||||
public String getDrAccount() {
|
||||
return drAccount;
|
||||
}
|
||||
|
||||
public void setDrAccount(String drAccount) {
|
||||
this.drAccount = drAccount;
|
||||
}
|
||||
|
||||
@Basic
|
||||
@Column(name = "crAccount", nullable = true, precision = 0, length = 35)
|
||||
public String getCrAccount() {
|
||||
return crAccount;
|
||||
}
|
||||
|
||||
public void setCrAccount(String crAccount) {
|
||||
this.crAccount = crAccount;
|
||||
}
|
||||
|
||||
@Basic
|
||||
@Column(name = "txnCurrency", nullable = false, length = 3)
|
||||
public String getTxnCurrency() {
|
||||
return txnCurrency;
|
||||
}
|
||||
|
||||
public void setTxnCurrency(String txnCurrency) {
|
||||
this.txnCurrency = txnCurrency;
|
||||
}
|
||||
|
||||
@Basic
|
||||
@Column(name = "txnAmount", nullable = false, precision = 0)
|
||||
public Float getTxnAmount() {
|
||||
return txnAmount;
|
||||
}
|
||||
|
||||
public void setTxnAmount(Float txnAmount) {
|
||||
this.txnAmount = txnAmount;
|
||||
}
|
||||
|
||||
@Basic
|
||||
@Column(name = "txnCharge", nullable = false, precision = 0)
|
||||
public Float getTxnCharge() {
|
||||
return txnCharge;
|
||||
}
|
||||
|
||||
public void setTxnCharge(float txnCharge) {
|
||||
this.txnCharge = txnCharge;
|
||||
}
|
||||
|
||||
public void setTxnCharge(Float txnCharge) {
|
||||
this.txnCharge = txnCharge;
|
||||
}
|
||||
|
||||
@Basic
|
||||
@Column(name = "txnNarration", nullable = true, length = 11)
|
||||
public String getTxnNarration() {
|
||||
return txnNarration;
|
||||
}
|
||||
|
||||
public void setTxnNarration(String txnNarration) {
|
||||
this.txnNarration = txnNarration;
|
||||
}
|
||||
|
||||
@Basic
|
||||
@Column(name = "elevyCharge", nullable = false, precision = 0)
|
||||
public Float getElevyCharge() {
|
||||
return elevyCharge;
|
||||
}
|
||||
|
||||
public void setElevyCharge(float elevyCharge) {
|
||||
this.elevyCharge = elevyCharge;
|
||||
}
|
||||
|
||||
public void setElevyCharge(Float elevyCharge) {
|
||||
this.elevyCharge = elevyCharge;
|
||||
}
|
||||
|
||||
@Basic
|
||||
@Column(name = "processFlag", nullable = true, length = 11)
|
||||
public String getProcessFlag() {
|
||||
return processFlag;
|
||||
}
|
||||
|
||||
public void setProcessFlag(String processFlag) {
|
||||
this.processFlag = processFlag;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) return true;
|
||||
if (o == null || getClass() != o.getClass()) return false;
|
||||
|
||||
TransactionDataEntity that = (TransactionDataEntity) o;
|
||||
|
||||
if (Double.compare(that.txnAmount, txnAmount) != 0) return false;
|
||||
if (Double.compare(that.txnCharge, txnCharge) != 0) return false;
|
||||
if (Double.compare(that.elevyCharge, elevyCharge) != 0) return false;
|
||||
if (drAccount != null ? !drAccount.equals(that.drAccount) : that.drAccount != null) return false;
|
||||
if (crAccount != null ? !crAccount.equals(that.crAccount) : that.crAccount != null) return false;
|
||||
if (txnRef != null ? !txnRef.equals(that.txnRef) : that.txnRef != null) return false;
|
||||
if (ftId != null ? !ftId.equals(that.ftId) : that.ftId != null) return false;
|
||||
if (api != null ? !api.equals(that.api) : that.api != null) return false;
|
||||
if (txnCode != null ? !txnCode.equals(that.txnCode) : that.txnCode != null) return false;
|
||||
if (hold != null ? !hold.equals(that.hold) : that.hold != null) return false;
|
||||
if (requestType != null ? !requestType.equals(that.requestType) : that.requestType != null) return false;
|
||||
if (bankWallet != null ? !bankWallet.equals(that.bankWallet) : that.bankWallet != null) return false;
|
||||
if (customerName != null ? !customerName.equals(that.customerName) : that.customerName != null) return false;
|
||||
if (customerBranch != null ? !customerBranch.equals(that.customerBranch) : that.customerBranch != null)
|
||||
return false;
|
||||
if (txnCurrency != null ? !txnCurrency.equals(that.txnCurrency) : that.txnCurrency != null) return false;
|
||||
if (txnNarration != null ? !txnNarration.equals(that.txnNarration) : that.txnNarration != null) return false;
|
||||
if (processFlag != null ? !processFlag.equals(that.processFlag) : that.processFlag != null) return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@Basic
|
||||
@Column(name = "txnStatus", nullable = false, length = 4)
|
||||
public String getTxnStatus() {
|
||||
return txnStatus;
|
||||
}
|
||||
|
||||
public void setTxnStatus(String txnStatus) {
|
||||
this.txnStatus = txnStatus;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
int result;
|
||||
long temp;
|
||||
result = txnRef != null ? txnRef.hashCode() : 0;
|
||||
result = 31 * result + (ftId != null ? ftId.hashCode() : 0);
|
||||
result = 31 * result + (api != null ? api.hashCode() : 0);
|
||||
result = 31 * result + (txnCode != null ? txnCode.hashCode() : 0);
|
||||
result = 31 * result + (hold != null ? hold.hashCode() : 0);
|
||||
result = 31 * result + (requestType != null ? requestType.hashCode() : 0);
|
||||
result = 31 * result + (bankWallet != null ? bankWallet.hashCode() : 0);
|
||||
result = 31 * result + (customerName != null ? customerName.hashCode() : 0);
|
||||
result = 31 * result + (customerBranch != null ? customerBranch.hashCode() : 0);
|
||||
result = 31 * result + (drAccount != null ? drAccount.hashCode() : 0);
|
||||
result = 31 * result + (crAccount != null ? crAccount.hashCode() : 0);
|
||||
result = 31 * result + (txnCurrency != null ? txnCurrency.hashCode() : 0);
|
||||
temp = Double.doubleToLongBits(txnAmount);
|
||||
result = 31 * result + (int) (temp ^ (temp >>> 32));
|
||||
temp = Double.doubleToLongBits(txnCharge);
|
||||
result = 31 * result + (int) (temp ^ (temp >>> 32));
|
||||
result = 31 * result + (txnNarration != null ? txnNarration.hashCode() : 0);
|
||||
temp = Double.doubleToLongBits(elevyCharge);
|
||||
result = 31 * result + (int) (temp ^ (temp >>> 32));
|
||||
result = 31 * result + (processFlag != null ? processFlag.hashCode() : 0);
|
||||
result = 31 * result + (txnStatus != null ? txnStatus.hashCode() : 0);
|
||||
return result;
|
||||
}
|
||||
|
||||
@Basic
|
||||
@Column(name = "timeStamp")
|
||||
public Timestamp getTimeStamp() {
|
||||
return timeStamp;
|
||||
}
|
||||
|
||||
public void setTimeStamp(Timestamp timeStamp) {
|
||||
this.timeStamp = timeStamp;
|
||||
}
|
||||
|
||||
@Basic
|
||||
@Column(name = "transactionType")
|
||||
public String getTransactionType() {
|
||||
return transactionType;
|
||||
}
|
||||
|
||||
public void setTransactionType(String transactionType) {
|
||||
this.transactionType = transactionType;
|
||||
}
|
||||
}
|
||||
+63
@@ -0,0 +1,63 @@
|
||||
package com.saslpay.entities;
|
||||
|
||||
import javax.persistence.*;
|
||||
|
||||
@Entity
|
||||
@Table(name = "user")
|
||||
public class UserEntity {
|
||||
private float userId;
|
||||
private String username;
|
||||
private String password;
|
||||
|
||||
@Id
|
||||
@Column(name = "userId", nullable = false, precision = 0)
|
||||
public float getUserId() {
|
||||
return userId;
|
||||
}
|
||||
|
||||
public void setUserId(float userId) {
|
||||
this.userId = userId;
|
||||
}
|
||||
|
||||
@Basic
|
||||
@Column(name = "username", nullable = false, length = 15)
|
||||
public String getUsername() {
|
||||
return username;
|
||||
}
|
||||
|
||||
public void setUsername(String username) {
|
||||
this.username = username;
|
||||
}
|
||||
|
||||
@Basic
|
||||
@Column(name = "password", nullable = false, length = 200)
|
||||
public String getPassword() {
|
||||
return password;
|
||||
}
|
||||
|
||||
public void setPassword(String password) {
|
||||
this.password = password;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) return true;
|
||||
if (o == null || getClass() != o.getClass()) return false;
|
||||
|
||||
UserEntity that = (UserEntity) o;
|
||||
|
||||
if (Float.compare(that.userId, userId) != 0) return false;
|
||||
if (username != null ? !username.equals(that.username) : that.username != null) return false;
|
||||
if (password != null ? !password.equals(that.password) : that.password != null) return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
int result = (userId != +0.0f ? Float.floatToIntBits(userId) : 0);
|
||||
result = 31 * result + (username != null ? username.hashCode() : 0);
|
||||
result = 31 * result + (password != null ? password.hashCode() : 0);
|
||||
return result;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user