From d6eba868b5118342e96cf169094938a5e877ba6f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Sat, 3 Jun 2017 16:47:04 +0200 Subject: [PATCH] Continued a bit: - creation timestamps should not be updateable - same with updated-timestamps, they should never be insertable (calling persist()?) - some comments improved --- src/org/mxchange/jusercore/model/user/LoginUser.java | 4 ++-- src/org/mxchange/jusercore/model/user/User.java | 2 +- .../jusercore/model/user/status/UserAccountStatus.java | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/org/mxchange/jusercore/model/user/LoginUser.java b/src/org/mxchange/jusercore/model/user/LoginUser.java index 15d75d1..ac5ddb1 100644 --- a/src/org/mxchange/jusercore/model/user/LoginUser.java +++ b/src/org/mxchange/jusercore/model/user/LoginUser.java @@ -100,7 +100,7 @@ public class LoginUser implements User { */ @Basic (optional = false) @Temporal (TemporalType.TIMESTAMP) - @Column (name = "user_created", nullable = false) + @Column (name = "user_created", nullable = false, updatable = false) private Calendar userCreated; /** @@ -163,7 +163,7 @@ public class LoginUser implements User { * When this user has been updated */ @Temporal (TemporalType.TIMESTAMP) - @Column (name = "user_updated") + @Column (name = "user_updated", insertable = false) private Calendar userUpdated; /** diff --git a/src/org/mxchange/jusercore/model/user/User.java b/src/org/mxchange/jusercore/model/user/User.java index 178c2ec..7700f50 100644 --- a/src/org/mxchange/jusercore/model/user/User.java +++ b/src/org/mxchange/jusercore/model/user/User.java @@ -24,7 +24,7 @@ import org.mxchange.jusercore.model.user.profilemodes.ProfileMode; import org.mxchange.jusercore.model.user.status.UserAccountStatus; /** - * A user POPJI + * A user POJI *

* @author Roland Häder */ diff --git a/src/org/mxchange/jusercore/model/user/status/UserAccountStatus.java b/src/org/mxchange/jusercore/model/user/status/UserAccountStatus.java index 0ba1024..ab1e043 100644 --- a/src/org/mxchange/jusercore/model/user/status/UserAccountStatus.java +++ b/src/org/mxchange/jusercore/model/user/status/UserAccountStatus.java @@ -51,9 +51,9 @@ public enum UserAccountStatus implements Serializable { private final String styleClass; /** - * Constructor with i18n translation key + * Constructor with i18n translation key and CSS style class *

- * @param messageKey Message key (i18n) + * @param messageKey Message key (i18n) * @param styleClass CSS style class */ private UserAccountStatus (final String messageKey, final String styleClass) { -- 2.39.5