]> git.mxchange.org Git - jcontacts-core.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Mon, 18 May 2020 22:12:29 +0000 (00:12 +0200)
committerRoland Häder <roland@mxchange.org>
Mon, 18 May 2020 22:12:29 +0000 (00:12 +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/jcontacts/model/contact/UserContact.java

index df12788753654fb1c0d77ce10c661b4e56f9ef09..03b5aea1906431041a3ab9969d23cdfcf71074be 100644 (file)
@@ -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;
 
        /**