From dfa4c071da77a3814eeb5ca501d2e2a102f6e23a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Tue, 19 May 2020 00:10:59 +0200 Subject: [PATCH] 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 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- .../mxchange/jfinancials/model/receipt/FinancialReceipt.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; /** -- 2.39.5