From: Roland Häder Date: Thu, 15 Sep 2022 03:50:06 +0000 (+0200) Subject: Continued: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=0a25531e4b768fd2b995a5399e3e77a6db3d168b;p=jfinancials-core.git Continued: - added optional propery "recipientRqCode" Signed-off-by: Roland Häder --- diff --git a/src/org/mxchange/jfinancials/model/receipt/BillableReceipt.java b/src/org/mxchange/jfinancials/model/receipt/BillableReceipt.java index 2fdb308..4065ff8 100644 --- a/src/org/mxchange/jfinancials/model/receipt/BillableReceipt.java +++ b/src/org/mxchange/jfinancials/model/receipt/BillableReceipt.java @@ -213,6 +213,20 @@ public interface BillableReceipt extends Comparable, Serializab */ void setReceiptPaymentType (final PaymentType receiptPaymentType); + /** + * Getter for receipt QR code + *

+ * @return Receipt QR code + */ + String getReceiptQrCode (); + + /** + * Setter for receipt QR code + *

+ * @param receiptQrCode Receipt QR code + */ + void setReceiptQrCode (final String receiptQrCode); + /** * Getter for receipt sequence number *

diff --git a/src/org/mxchange/jfinancials/model/receipt/FinancialReceipt.java b/src/org/mxchange/jfinancials/model/receipt/FinancialReceipt.java index 735d474..56bcba2 100644 --- a/src/org/mxchange/jfinancials/model/receipt/FinancialReceipt.java +++ b/src/org/mxchange/jfinancials/model/receipt/FinancialReceipt.java @@ -29,6 +29,7 @@ import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.JoinColumn; +import javax.persistence.Lob; import javax.persistence.NamedQueries; import javax.persistence.NamedQuery; import javax.persistence.OneToOne; @@ -179,6 +180,13 @@ public class FinancialReceipt implements BillableReceipt { @OneToOne (targetEntity = LoginUser.class, cascade = CascadeType.REFRESH) private User receiptUser; + /** + * Recipient QR code + */ + @Lob () + @Column (name = "receipt_qr_code") + private String receiptQrCode; + /** * Default constructor */ @@ -435,6 +443,16 @@ public class FinancialReceipt implements BillableReceipt { this.receiptPaymentType = receiptPaymentType; } + @Override + public String getReceiptQrCode () { + return this.receiptQrCode; + } + + @Override + public void setReceiptQrCode (final String receiptQrCode) { + this.receiptQrCode = receiptQrCode; + } + @Override public Long getReceiptRegisterNumber () { return this.receiptRegisterNumber; @@ -506,6 +524,7 @@ public class FinancialReceipt implements BillableReceipt { hash = 89 * hash + Objects.hashCode(this.getReceiptIssued()); hash = 89 * hash + Objects.hashCode(this.getReceiptNumber()); hash = 89 * hash + Objects.hashCode(this.getReceiptPaymentType()); + hash = 89 * hash + Objects.hashCode(this.getReceiptQrCode()); hash = 89 * hash + Objects.hashCode(this.getReceiptRegisterNumber()); hash = 89 * hash + Objects.hashCode(this.getReceiptSellerEmployee()); hash = 89 * hash + Objects.hashCode(this.getReceiptSequenceNumber());