From eba0561f6e3de57182be0e73ce258533848cb2e9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Tue, 19 May 2020 00:12:49 +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/jproduct/model/category/ProductCategory.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/org/mxchange/jproduct/model/category/ProductCategory.java b/src/org/mxchange/jproduct/model/category/ProductCategory.java index 3518667..42ff1b4 100644 --- a/src/org/mxchange/jproduct/model/category/ProductCategory.java +++ b/src/org/mxchange/jproduct/model/category/ProductCategory.java @@ -67,7 +67,7 @@ public class ProductCategory implements Category { /** * When this entry has been created */ - @Column (name = "category_entry_updated") + @Column (name = "category_entry_updated", insertable = false) @Temporal (TemporalType.TIMESTAMP) private Date categoryEntryUpdated; -- 2.39.5