]> git.mxchange.org Git - jfinancials-core.git/commitdiff
Don't cherry-pick:
authorRoland Häder <roland@mxchange.org>
Fri, 24 Apr 2020 16:07:00 +0000 (18:07 +0200)
committerRoland Häder <roland@mxchange.org>
Fri, 24 Apr 2020 16:07:00 +0000 (18:07 +0200)
- renamed receiptCreated to receiptEntryCreated
- renamed receiptUpdated to receiptEntryUpdated

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
src/org/mxchange/jfinancials/model/receipt/Receipts.java

index b85d2200beabe0ba8e9de715cd0d718981fc605e..478a10cf86cd75a3934c3d01cb69fe1cede626fa 100644 (file)
@@ -64,28 +64,28 @@ public interface BillableReceipt extends Comparable<BillableReceipt>, Serializab
         * <p>
         * @return Receipt creation timestamp
         */
-       Date getReceiptCreated ();
+       Date getReceiptEntryCreated ();
 
        /**
         * Setter for when this receipt has been created in database
         * <p>
         * @param receiptUpdated Receipt updated timestamp
         */
-       void setReceiptUpdated (final Date receiptUpdated);
+       void setReceiptEntryUpdated (final Date receiptUpdated);
 
        /**
         * Getter for when this receipt has been updated in database
         * <p>
         * @return Receipt updated timestamp
         */
-       Date getReceiptUpdated ();
+       Date getReceiptEntryUpdated ();
 
        /**
         * Setter for when this receipt has been updated in database
         * <p>
         * @param receiptCreated Receipt creation timestamp
         */
-       void setReceiptCreated (final Date receiptCreated);
+       void setReceiptEntryCreated (final Date receiptCreated);
 
        /**
         * Getter for when this receipt has been issued (as written on it)
index 24f000b7c48bc0f29814061356e693b9889a85b4..eb8ffc66648fedba5b3759cc3d9f38fe6452ee58 100644 (file)
@@ -101,8 +101,15 @@ public class FinancialReceipt implements BillableReceipt {
         */
        @Basic (optional = false)
        @Temporal (TemporalType.TIMESTAMP)
-       @Column (name = "receipt_created", nullable = false)
-       private Date receiptCreated;
+       @Column (name = "receipt_entrt_created", nullable = false)
+       private Date receiptEntryCreated;
+
+       /**
+        * When this receipt entry has been updated
+        */
+       @Temporal (TemporalType.TIMESTAMP)
+       @Column (name = "receipt_entry_updated")
+       private Date receiptEntryUpdated;
 
        /**
         * Primary key
@@ -159,13 +166,6 @@ public class FinancialReceipt implements BillableReceipt {
        @Column (name = "receipt_transaction_number")
        private Long receiptTransactionNumber;
 
-       /**
-        * When this receipt entry has been updated
-        */
-       @Temporal (TemporalType.TIMESTAMP)
-       @Column (name = "receipt_updated")
-       private Date receiptUpdated;
-
        /**
         * Which user this receipt belongs to
         */
@@ -361,14 +361,26 @@ public class FinancialReceipt implements BillableReceipt {
 
        @Override
        @SuppressWarnings ("ReturnOfDateField")
-       public Date getReceiptCreated () {
-               return this.receiptCreated;
+       public Date getReceiptEntryCreated () {
+               return this.receiptEntryCreated;
+       }
+
+       @Override
+       @SuppressWarnings ("AssignmentToDateFieldFromParameter")
+       public void setReceiptEntryCreated (final Date receiptEntryCreated) {
+               this.receiptEntryCreated = receiptEntryCreated;
+       }
+
+       @Override
+       @SuppressWarnings ("ReturnOfDateField")
+       public Date getReceiptEntryUpdated () {
+               return this.receiptEntryUpdated;
        }
 
        @Override
        @SuppressWarnings ("AssignmentToDateFieldFromParameter")
-       public void setReceiptCreated (final Date receiptCreated) {
-               this.receiptCreated = receiptCreated;
+       public void setReceiptEntryUpdated (final Date receiptEntryUpdated) {
+               this.receiptEntryUpdated = receiptEntryUpdated;
        }
 
        @Override
@@ -453,18 +465,6 @@ public class FinancialReceipt implements BillableReceipt {
                this.receiptTransactionNumber = receiptTransactionNumber;
        }
 
-       @Override
-       @SuppressWarnings ("ReturnOfDateField")
-       public Date getReceiptUpdated () {
-               return this.receiptUpdated;
-       }
-
-       @Override
-       @SuppressWarnings ("AssignmentToDateFieldFromParameter")
-       public void setReceiptUpdated (final Date receiptUpdated) {
-               this.receiptUpdated = receiptUpdated;
-       }
-
        @Override
        public User getReceiptUser () {
                return this.receiptUser;
index 32b1c868d03b13639fd2b274a216e0fc6649dd1e..fe9748d7cc0c8d47cc3986576ee93bb8333e9d38 100644 (file)
@@ -81,7 +81,8 @@ public class Receipts implements Serializable {
                targetReceipt.setReceiptBarCodeNumber(sourceReceipt.getReceiptBarCodeNumber());
                targetReceipt.setReceiptBonusCard(sourceReceipt.getReceiptBonusCard());
                targetReceipt.setReceiptBranchOffice(sourceReceipt.getReceiptBranchOffice());
-               targetReceipt.setReceiptCreated(sourceReceipt.getReceiptCreated());
+               targetReceipt.setReceiptEntryCreated(sourceReceipt.getReceiptEntryCreated());
+               targetReceipt.setReceiptEntryUpdated(sourceReceipt.getReceiptEntryUpdated());
                targetReceipt.setReceiptId(sourceReceipt.getReceiptId());
                targetReceipt.setReceiptIssued(sourceReceipt.getReceiptIssued());
                targetReceipt.setReceiptNumber(sourceReceipt.getReceiptNumber());
@@ -90,7 +91,6 @@ public class Receipts implements Serializable {
                targetReceipt.setReceiptSellerEmployee(sourceReceipt.getReceiptSellerEmployee());
                targetReceipt.setReceiptSequenceNumber(sourceReceipt.getReceiptSequenceNumber());
                targetReceipt.setReceiptTransactionNumber(sourceReceipt.getReceiptTransactionNumber());
-               targetReceipt.setReceiptUpdated(sourceReceipt.getReceiptUpdated());
                targetReceipt.setReceiptUser(sourceReceipt.getReceiptUser());
        }