private Contact userContact;
/**
- * "created" timestamp
+ * Encrypted password
*/
@Basic (optional = false)
- @Temporal (TemporalType.TIMESTAMP)
- @Column (name = "user_created", nullable = false, updatable = false)
- private Date userCreated;
+ @Column (name = "user_encrypted_password", nullable = false)
+ private String userEncryptedPassword;
/**
- * Encrypted password
+ * When this user entry has been created
*/
@Basic (optional = false)
- @Column (name = "user_encrypted_password", nullable = false)
- private String userEncryptedPassword;
+ @Temporal (TemporalType.TIMESTAMP)
+ @Column (name = "user_entry_created", nullable = false, updatable = false)
+ private Date userEntryCreated;
+
+ /**
+ * When this user entry has been updated
+ */
+ @Temporal (TemporalType.TIMESTAMP)
+ @Column (name = "user_entry_updated", insertable = false)
+ private Date userEntryUpdated;
/**
* User id
@Column (name = "user_profile_mode", nullable = false)
private ProfileMode userProfileMode;
- /**
- * When this user has been updated
- */
- @Temporal (TemporalType.TIMESTAMP)
- @Column (name = "user_updated", insertable = false)
- private Date userUpdated;
-
/**
* Default constructor
*/
this.userContact = userContact;
}
+ @Override
+ public String getUserEncryptedPassword () {
+ return this.userEncryptedPassword;
+ }
+
+ @Override
+ public void setUserEncryptedPassword (final String userEncryptedPassword) {
+ this.userEncryptedPassword = userEncryptedPassword;
+ }
+
@Override
@SuppressWarnings ("ReturnOfDateField")
- public Date getUserCreated () {
- return this.userCreated;
+ public Date getUserEntryCreated () {
+ return this.userEntryCreated;
}
@Override
@SuppressWarnings ("AssignmentToDateFieldFromParameter")
- public void setUserCreated (final Date userCreated) {
- this.userCreated = userCreated;
+ public void setUserEntryCreated (final Date userEntryCreated) {
+ this.userEntryCreated = userEntryCreated;
}
@Override
- public String getUserEncryptedPassword () {
- return this.userEncryptedPassword;
+ @SuppressWarnings ("ReturnOfDateField")
+ public Date getUserEntryUpdated () {
+ return this.userEntryUpdated;
}
@Override
- public void setUserEncryptedPassword (final String userEncryptedPassword) {
- this.userEncryptedPassword = userEncryptedPassword;
+ @SuppressWarnings ("AssignmentToDateFieldFromParameter")
+ public void setUserEntryUpdated (final Date userEntryUpdated) {
+ this.userEntryUpdated = userEntryUpdated;
}
@Override
this.userProfileMode = userProfileMode;
}
- @Override
- @SuppressWarnings ("ReturnOfDateField")
- public Date getUserUpdated () {
- return this.userUpdated;
- }
-
- @Override
- @SuppressWarnings ("AssignmentToDateFieldFromParameter")
- public void setUserUpdated (final Date userUpdated) {
- this.userUpdated = userUpdated;
- }
-
@Override
public int hashCode () {
int hash = 5;
* <p>
* @return "created" timestamp
*/
- Date getUserCreated ();
+ Date getUserEntryCreated ();
/**
* Setter for "created" timestamp
* <p>
* @param userCreated "created" timestamp
*/
- void setUserCreated (final Date userCreated);
+ void setUserEntryCreated (final Date userCreated);
/**
* Getter for encrypted password
* <p>
* @return Updated timestamp
*/
- Date getUserUpdated ();
+ Date getUserEntryUpdated ();
/**
* Setter for updated timestamp
* <p>
* @param userUpdated Updated timestamp
*/
- void setUserUpdated (final Date userUpdated);
+ void setUserEntryUpdated (final Date userUpdated);
/**
* Getter for user's locale
targetUser.setUserAccountStatus(sourceUser.getUserAccountStatus());
targetUser.setUserLastLocked(sourceUser.getUserLastLocked());
targetUser.setUserLastLockedReason(sourceUser.getUserLastLockedReason());
- targetUser.setUserUpdated(sourceUser.getUserUpdated());
+ targetUser.setUserEntryUpdated(sourceUser.getUserEntryUpdated());
targetUser.setUserProfileMode(sourceUser.getUserProfileMode());
targetUser.setUserLocale(sourceUser.getUserLocale());
targetUser.setUserMustChangePassword(sourceUser.getUserMustChangePassword());
// - User data
properties.setProperty("userId", Long.toString(user.getUserId())); //NOI18N
properties.setProperty("userName", user.getUserName()); //NOI18N
- properties.setProperty("userCreated", getFormattedTimestampFromUser(user, user.getUserCreated())); //NOI18N
- if (user.getUserUpdated() != null) {
- properties.setProperty("userUpdated", getFormattedTimestampFromUser(user, user.getUserUpdated())); //NOI18N
+ properties.setProperty("userCreated", getFormattedTimestampFromUser(user, user.getUserEntryCreated())); //NOI18N
+ if (user.getUserEntryUpdated() != null) {
+ properties.setProperty("userUpdated", getFormattedTimestampFromUser(user, user.getUserEntryUpdated())); //NOI18N
}
if (user.getUserConfirmKey() != null) {
properties.setProperty("userConfirmKey", user.getUserConfirmKey()); //NOI18N