]> git.mxchange.org Git - jfinancials-core.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Mon, 18 May 2020 22:10:59 +0000 (00:10 +0200)
committerRoland Häder <roland@mxchange.org>
Mon, 18 May 2020 22:10:59 +0000 (00:10 +0200)
- entry-created timestamps shall never be allowed being set in UPDATE queries
- entry-updated timestamps shall never be allowed being set in INSERT queries

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

index e49f149acdc2f2b3ff4430c5aa76b26ab45a3540..d3f24311c0d8ffbcfb24c30f26a0447af46d8ec4 100644 (file)
@@ -100,14 +100,14 @@ public class FinancialReceipt implements BillableReceipt {
         */
        @Basic (optional = false)
        @Temporal (TemporalType.TIMESTAMP)
-       @Column (name = "receipt_entry_created", nullable = false)
+       @Column (name = "receipt_entry_created", updatable = false, nullable = false)
        private Date receiptEntryCreated;
 
        /**
         * When this receipt entry has been updated
         */
        @Temporal (TemporalType.TIMESTAMP)
-       @Column (name = "receipt_entry_updated")
+       @Column (name = "receipt_entry_updated", insertable = false)
        private Date receiptEntryUpdated;
 
        /**