From: Roland Häder Date: Sat, 3 Jun 2017 14:47:04 +0000 (+0200) Subject: Continued a bit: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=d6eba868b5118342e96cf169094938a5e877ba6f;p=juser-core.git Continued a bit: - creation timestamps should not be updateable - same with updated-timestamps, they should never be insertable (calling persist()?) - some comments improved --- 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) {