@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<User> {
/**
* Serial number
/**
* Encrypted password
*/
+ @Basic (optional = false)
@Column (name = "user_encrypted_password", nullable = false)
private String userEncryptedPassword;
/**
* User name
*/
+ @Basic (optional = false)
@Column (name = "user_name", nullable = false, length = 20)
private String userName;
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