From: Roland Häder Date: Mon, 18 May 2020 22:10:59 +0000 (+0200) Subject: Continued: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=dfa4c071da77a3814eeb5ca501d2e2a102f6e23a;p=jfinancials-core.git Continued: - 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 --- diff --git a/src/org/mxchange/jfinancials/model/receipt/FinancialReceipt.java b/src/org/mxchange/jfinancials/model/receipt/FinancialReceipt.java index e49f149..d3f2431 100644 --- a/src/org/mxchange/jfinancials/model/receipt/FinancialReceipt.java +++ b/src/org/mxchange/jfinancials/model/receipt/FinancialReceipt.java @@ -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; /**