public class UserEntity extends Object implements User, Serializable, DbEntity, HasDbRevision
Modifier and Type | Field and Description |
---|---|
protected String |
email |
protected String |
firstName |
protected String |
id |
protected String |
lastName |
protected String |
newPassword |
protected String |
password |
protected int |
revision |
Constructor and Description |
---|
UserEntity() |
UserEntity(String id) |
Modifier and Type | Method and Description |
---|---|
void |
encryptPassword() |
protected String |
encryptPassword(String password) |
String |
getEmail() |
String |
getFirstName() |
String |
getId() |
String |
getLastName() |
String |
getPassword() |
Object |
getPersistentState()
Returns a representation of the object,
as would be stored in the database.
|
int |
getRevision() |
int |
getRevisionNext() |
void |
setDbPassword(String password)
Special setter for MyBatis.
|
void |
setEmail(String email) |
void |
setFirstName(String firstName) |
void |
setId(String id) |
void |
setLastName(String lastName) |
void |
setPassword(String password) |
void |
setRevision(int revision) |
String |
toString() |
protected String id
protected int revision
protected String firstName
protected String lastName
protected String email
protected String password
protected String newPassword
public UserEntity()
public UserEntity(String id)
public Object getPersistentState()
DbEntity
getPersistentState
in interface DbEntity
public int getRevisionNext()
getRevisionNext
in interface HasDbRevision
public String getId()
public void setId(String id)
public String getFirstName()
getFirstName
in interface User
public void setFirstName(String firstName)
setFirstName
in interface User
public String getLastName()
getLastName
in interface User
public void setLastName(String lastName)
setLastName
in interface User
public String getPassword()
getPassword
in interface User
public void setPassword(String password)
setPassword
in interface User
public void setDbPassword(String password)
public int getRevision()
getRevision
in interface HasDbRevision
public void setRevision(int revision)
setRevision
in interface HasDbRevision
public void encryptPassword()
Copyright © 2018. All rights reserved.