From 5ae13df2bc576508889a619f011fb5cd6645d3cf Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Mon, 30 Oct 2017 22:52:32 +0100 Subject: [PATCH] Continued: - added sequence number (maybe different to other numbers) MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- .../model/receipt/BillableReceipt.java | 16 +++++++++++++++- .../model/receipt/FinancialReceipt.java | 16 ++++++++++++++++ 2 files changed, 31 insertions(+), 1 deletion(-) diff --git a/src/org/mxchange/jfinancials/model/receipt/BillableReceipt.java b/src/org/mxchange/jfinancials/model/receipt/BillableReceipt.java index b1edba3..af12bc3 100644 --- a/src/org/mxchange/jfinancials/model/receipt/BillableReceipt.java +++ b/src/org/mxchange/jfinancials/model/receipt/BillableReceipt.java @@ -19,9 +19,9 @@ package org.mxchange.jfinancials.model.receipt; import java.io.Serializable; import java.util.Date; import org.mxchange.jcontactsbusiness.model.branchoffice.BranchOffice; +import org.mxchange.jcontactsbusiness.model.employee.Employable; import org.mxchange.jproduct.model.payment.PaymentType; import org.mxchange.jusercore.model.user.User; -import org.mxchange.jcontactsbusiness.model.employee.Employable; /** * An interface for receipts @@ -170,6 +170,20 @@ public interface BillableReceipt extends Serializable { */ void setReceiptPaymentType (final PaymentType receiptPaymentType); + /** + * Getter for receipt sequence number + *

+ * @return Receipt sequence number + */ + Long getReceiptSequenceNumber (); + + /** + * Setter for receipt sequence number + *

+ * @param receiptSequenceNumber Receipt sequence number + */ + void setReceiptSequenceNumber (final Long receiptSequenceNumber); + @Override boolean equals (final Object object); diff --git a/src/org/mxchange/jfinancials/model/receipt/FinancialReceipt.java b/src/org/mxchange/jfinancials/model/receipt/FinancialReceipt.java index 37b7819..56dd98e 100644 --- a/src/org/mxchange/jfinancials/model/receipt/FinancialReceipt.java +++ b/src/org/mxchange/jfinancials/model/receipt/FinancialReceipt.java @@ -131,6 +131,12 @@ public class FinancialReceipt implements BillableReceipt { @OneToOne (targetEntity = BusinessEmployee.class, cascade = CascadeType.REFRESH) private Employable receiptSellerEmployee; + /** + * Receipt sequence number + */ + @Column (name = "receipt_sequence_number") + private Long receiptSequenceNumber; + /** * Which user this receipt belongs to */ @@ -338,6 +344,16 @@ public class FinancialReceipt implements BillableReceipt { this.receiptSellerEmployee = receiptSellerEmployee; } + @Override + public Long getReceiptSequenceNumber () { + return this.receiptSequenceNumber; + } + + @Override + public void setReceiptSequenceNumber (final Long receiptSequenceNumber) { + this.receiptSequenceNumber = receiptSequenceNumber; + } + @Override public User getReceiptUser () { return this.receiptUser; -- 2.39.5