From: Roland Haeder Date: Sun, 6 Mar 2016 14:30:09 +0000 (+0100) Subject: Continued a bit: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=82414423c8cf55a0d5305a618f06eddb66f858b8;p=juser-activity-core.git Continued a bit: - added Comparable and let compareTo() unimplemented - more columns are now not optional as they are required for user-login --- diff --git a/src/org/mxchange/jusercore/model/user/LoginUser.java b/src/org/mxchange/jusercore/model/user/LoginUser.java index 88f1823..d01c952 100644 --- a/src/org/mxchange/jusercore/model/user/LoginUser.java +++ b/src/org/mxchange/jusercore/model/user/LoginUser.java @@ -74,7 +74,7 @@ import org.mxchange.jusercore.model.user.status.UserAccountStatus; @NamedQuery (name = "AllMemberPublicUsers", query = "SELECT u FROM users AS u WHERE u.userAccountStatus = :status AND u.userProfileMode IN (:public, :members) ORDER BY u.userId ASC") } ) -public class LoginUser implements User { +public class LoginUser implements User, Comparable { /** * Serial number @@ -120,6 +120,7 @@ public class LoginUser implements User { /** * Encrypted password */ + @Basic (optional = false) @Column (name = "user_encrypted_password", nullable = false) private String userEncryptedPassword; @@ -141,6 +142,7 @@ public class LoginUser implements User { /** * User name */ + @Basic (optional = false) @Column (name = "user_name", nullable = false, length = 20) private String userName; @@ -167,6 +169,11 @@ public class LoginUser implements User { this.userProfileMode = ProfileMode.INVISIBLE; } + @Override + public int compareTo (final User user) { + throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. + } + @Override public void copyAll (final User user) { // Copy also contact data diff --git a/src/org/mxchange/jusercore/model/user/User.java b/src/org/mxchange/jusercore/model/user/User.java index c5705d5..5a6ec78 100644 --- a/src/org/mxchange/jusercore/model/user/User.java +++ b/src/org/mxchange/jusercore/model/user/User.java @@ -202,7 +202,7 @@ public interface User extends Serializable { boolean equals (final Object object); /** - * Hash code caluclation for this object + * Hash code calculation for this object *

* @return Hash code for this object */