* Last locked reason
*/
@Lob
- @Column(name = "user_last_locked_reason")
+ @Column (name = "user_last_locked_reason")
private String lastLockedReason;
/**
@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
*/
final User other = (User) object;
- return ((Objects.equals(this.getUserName(), other.getUserName())) &&
- (Objects.equals(this.getUserId(), other.getUserId())));
+ return ((Objects.equals(this.getUserName(), other.getUserName()))
+ && (Objects.equals(this.getUserId(), other.getUserId())));
}
@Override
this.userProfileMode = userProfileMode;
}
+ @Override
+ public Calendar getUserUpdated () {
+ return this.userUpdated;
+ }
+
+ @Override
+ public void setUserUpdated (final Calendar userUpdated) {
+ this.userUpdated = userUpdated;
+ }
+
@Override
public int hashCode () {
int hash = 5;
*/
void setUserProfileMode (final ProfileMode userPublicProfile);
+ /**
+ * Getter for updated timestamp
+ * <p>
+ * @return Updated timestamp
+ */
+ Calendar getUserUpdated ();
+
+ /**
+ * Setter for updated timestamp
+ * <p>
+ * @param userUpdated Updated timestamp
+ */
+ void setUserUpdated (final Calendar userUpdated);
+
/**
* Checks if object is a User instance and whether it matches with this
* object.