*/
private static final long serialVersionUID = 4_328_454_581_751L;
+ /**
+ * Last locked reason
+ */
+ @Lob
+ @Column (name = "user_last_locked_reason")
+ private String lastLockedReason;
+
/**
* Account status
*/
@Column (name = "user_last_locked_timestamp")
private Calendar userLastLocked;
- /**
- * Last locked reason
- */
- @Lob
- @Column (name = "user_last_locked_reason")
- private String lastLockedReason;
-
/**
* User name
*/
@Column (name = "user_name", nullable = false, length = 20)
private String userName;
- /**
- * When this user has been updated
- */
- @Temporal (TemporalType.TIMESTAMP)
- @Column (name = "user_updated")
- private Calendar userUpdated;
-
/**
* Profile mode of this user
*/
@Column (name = "user_profile_mode", nullable = false)
private ProfileMode userProfileMode;
+ /**
+ * When this user has been updated
+ */
+ @Temporal (TemporalType.TIMESTAMP)
+ @Column (name = "user_updated")
+ private Calendar userUpdated;
+
/**
* Default constructor
*/
if (object == null) {
return false;
}
- if (getClass() != object.getClass()) {
+ if (this.getClass() != object.getClass()) {
return false;
}
(Objects.equals(this.getUserId(), other.getUserId())));
}
+ @Override
+ public int hashCode () {
+ int hash = 5;
+ hash = 83 * hash + Objects.hashCode(this.getUserName());
+ hash = 83 * hash + Objects.hashCode(this.getUserId());
+ return hash;
+ }
+
@Override
public String getLastLockedReason () {
return this.lastLockedReason;
this.userUpdated = userUpdated;
}
- @Override
- public int hashCode () {
- int hash = 5;
- hash = 83 * hash + Objects.hashCode(this.getUserName());
- hash = 83 * hash + Objects.hashCode(this.getUserId());
- return hash;
- }
}