From f8dd753f2effb9ce1bb4dbb55e563120fd43cdca Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Tue, 19 May 2020 00:12:29 +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 --- src/org/mxchange/jcontacts/model/contact/UserContact.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/org/mxchange/jcontacts/model/contact/UserContact.java b/src/org/mxchange/jcontacts/model/contact/UserContact.java index df12788..03b5aea 100644 --- a/src/org/mxchange/jcontacts/model/contact/UserContact.java +++ b/src/org/mxchange/jcontacts/model/contact/UserContact.java @@ -118,14 +118,14 @@ public class UserContact implements Contact { */ @Basic (optional = false) @Temporal (TemporalType.TIMESTAMP) - @Column (name = "contact_entry_created", nullable = false) + @Column (name = "contact_entry_created", updatable = false, nullable = false) private Date contactEntryCreated; /** * When the contact has been updated */ @Temporal (TemporalType.TIMESTAMP) - @Column (name = "contact_entry_updated") + @Column (name = "contact_entry_updated", insertable = false) private Date contactEntryUpdated; /** -- 2.39.5