@OneToOne (targetEntity = UserContact.class, optional = false)
private Contact contact;
+ /**
+ * Account status
+ */
+ @Basic (optional = false)
+ @Column (name = "user_account_status", nullable = false)
+ @Enumerated (value = EnumType.STRING)
+ private UserAccountStatus userAccountStatus;
+
/**
* Confirmation key
*/
@Column (name = "user_password_hash")
private String userPasswordHash;
- /**
- * Account status
- */
- @Basic (optional = false)
- @Column (name = "user_account_status", nullable = false)
- @Enumerated (EnumType.STRING)
- private UserAccountStatus userAccountStatus;
-
/**
* Default constructor
*/
this.contact = contact;
}
+ @Override
+ public UserAccountStatus getUserAccountStatus () {
+ return this.userAccountStatus;
+ }
+
+ @Override
+ public void setUserAccountStatus (final UserAccountStatus userAccountStatus) {
+ this.userAccountStatus = userAccountStatus;
+ }
+
@Override
public String getUserConfirmKey () {
return this.userConfirmKey;
public void setUserPasswordHash (final String userPasswordHash) {
this.userPasswordHash = userPasswordHash;
}
-
- @Override
- public UserAccountStatus getUserAccountStatus () {
- return this.userAccountStatus;
- }
-
- @Override
- public void setUserAccountStatus (final UserAccountStatus userAccountStatus) {
- this.userAccountStatus = userAccountStatus;
- }
}
*/
public void setContact (final Contact contact);
+ /**
+ * Getter for account status
+ * <p>
+ * @return Account status
+ */
+ public UserAccountStatus getUserAccountStatus ();
+
+ /**
+ * Setter for account status
+ * <p>
+ * @param customerStatus Account status
+ */
+ public void setUserAccountStatus (final UserAccountStatus customerStatus);
+
/**
* Getter for confirmation key
* <p>
* @param customerPasswordHash Password hash
*/
public void setUserPasswordHash (final String customerPasswordHash);
-
- /**
- * Getter for account status
- * <p>
- * @return Account status
- */
- public UserAccountStatus getUserAccountStatus ();
-
- /**
- * Setter for account status
- * <p>
- * @param customerStatus Account status
- */
- public void setUserAccountStatus (final UserAccountStatus customerStatus);
}