package org.mxchange.jusercore.model.user;
import java.util.Calendar;
+import java.util.Locale;
import java.util.Objects;
import javax.persistence.Basic;
import javax.persistence.CascadeType;
@Column (name = "user_last_locked_reason")
private String userLastLockedReason;
+ /**
+ * User locale
+ */
+ @Column(name = "user_locale")
+ private Locale userLocale;
+
/**
* User name
*/
this.setUserLastLocked(user.getUserLastLocked());
this.setUserUpdated(user.getUserUpdated());
this.setUserProfileMode(user.getUserProfileMode());
+ this.setUserLocale(user.getUserLocale());
}
@Override
this.userLastLockedReason = userLastLockedReason;
}
+ @Override
+ public Locale getUserLocale () {
+ return this.userLocale;
+ }
+
+ @Override
+ public void setUserLocale (final Locale userLocale) {
+ this.userLocale = userLocale;
+ }
+
@Override
public String getUserName () {
return this.userName;
import java.io.Serializable;
import java.util.Calendar;
+import java.util.Locale;
import org.mxchange.jcontacts.contact.Contact;
import org.mxchange.jusercore.model.user.profilemodes.ProfileMode;
import org.mxchange.jusercore.model.user.status.UserAccountStatus;
*/
void setUserUpdated (final Calendar userUpdated);
+ /**
+ * Getter for user's locale
+ * <p>
+ * @return User's locale
+ */
+ Locale getUserLocale ();
+
+ /**
+ * Setteror user's locale
+ * <p>
+ * @param userLocale User's locale
+ */
+ void setUserLocale (final Locale userLocale);
+
@Override
boolean equals (final Object object);
@Override
int hashCode ();
+
}