]> git.mxchange.org Git - jbonuscard-core.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Mon, 30 Oct 2017 21:52:32 +0000 (22:52 +0100)
committerRoland Häder <roland@mxchange.org>
Mon, 30 Oct 2017 21:52:32 +0000 (22:52 +0100)
- added sequence number (maybe different to other numbers)

Signed-off-by: Roland Häder <roland@mxchange.org>
src/org/mxchange/jfinancials/model/receipt/BillableReceipt.java
src/org/mxchange/jfinancials/model/receipt/FinancialReceipt.java

index b1edba3fc564db8bfe68727c6a4c3730597db7a9..af12bc3445ec2a8fd9fd7871815cf015de0a807e 100644 (file)
@@ -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
+        * <p>
+        * @return Receipt sequence number
+        */
+       Long getReceiptSequenceNumber ();
+
+       /**
+        * Setter for receipt sequence number
+        * <p>
+        * @param receiptSequenceNumber Receipt sequence number
+        */
+       void setReceiptSequenceNumber (final Long receiptSequenceNumber);
+
        @Override
        boolean equals (final Object object);
 
index 37b78199621080b470712aac9ac179734c20a38a..56dd98e879e104df878215410907f6534c66f18a 100644 (file)
@@ -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;