From: Roland Häder Date: Mon, 30 Oct 2017 21:52:32 +0000 (+0100) Subject: Continued: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=5ae13df2bc576508889a619f011fb5cd6645d3cf;p=jfinancials-core.git Continued: - added sequence number (maybe different to other numbers) 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 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;