From: Roland Häder Date: Mon, 18 May 2020 22:12:29 +0000 (+0200) Subject: Continued: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=f8dd753f2effb9ce1bb4dbb55e563120fd43cdca;p=jcontacts-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/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; /**