From 0a25531e4b768fd2b995a5399e3e77a6db3d168b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Thu, 15 Sep 2022 05:50:06 +0200 Subject: [PATCH] Continued: - added optional propery "recipientRqCode" MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- .../model/receipt/BillableReceipt.java | 14 ++++++++++++++ .../model/receipt/FinancialReceipt.java | 19 +++++++++++++++++++ 2 files changed, 33 insertions(+) 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()); -- 2.39.5