@Entity
public class UserJPA
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
UserJPA()
Class constructor methods.
|
UserJPA(int id,
java.lang.String name,
java.lang.String password,
java.lang.String plainPassword,
java.lang.String email,
java.lang.String actionToken,
int tryNumber,
boolean blocked,
java.util.Date creationDate,
java.util.Date lastLoginDate,
java.util.Collection<AccountGroupJPA> groups)
Instantiates a new user jpa.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getActionToken()
Gets the action token.
|
java.util.Date |
getCreationDate()
Gets the creation date.
|
java.lang.String |
getEmail()
Gets the email.
|
java.util.Collection<AccountGroupJPA> |
getGroups()
Methods get/set persistent relationships.
|
int |
getId()
Methods get/set the fields of database.
|
java.util.Date |
getLastLoginDate()
Gets the last login date.
|
java.lang.String |
getName()
Gets the name.
|
java.lang.String |
getPassword()
Gets the password.
|
java.lang.String |
getPlainPassword()
Gets the plain password.
|
int |
getTryNumber()
Gets the try number.
|
boolean |
isBlocked()
Checks if is blocked.
|
void |
setActionToken(java.lang.String actionToken)
Sets the action token.
|
void |
setBlocked(boolean blocked)
Sets the blocked.
|
void |
setCreationDate(java.util.Date creationDate)
Sets the creation date.
|
void |
setEmail(java.lang.String email)
Sets the email.
|
void |
setGroups(java.util.Collection<AccountGroupJPA> groups)
Sets the groups.
|
void |
setId(int id)
Sets the id.
|
void |
setLastLoginDate(java.util.Date lastLoginDate)
Sets the last login date.
|
void |
setName(java.lang.String name)
Sets the name.
|
void |
setPassword(java.lang.String password)
Sets the password.
|
void |
setPlainPassword(java.lang.String plainPassword)
Sets the plain password.
|
void |
setTryNumber(int tryNumber)
Sets the try number.
|
public UserJPA()
public UserJPA(int id, java.lang.String name, java.lang.String password, java.lang.String plainPassword, java.lang.String email, java.lang.String actionToken, int tryNumber, boolean blocked, java.util.Date creationDate, java.util.Date lastLoginDate, java.util.Collection<AccountGroupJPA> groups)
id
- the idname
- the namepassword
- the passwordplainPassword
- the plain passwordemail
- the emailactionToken
- the action tokentryNumber
- the try numberblocked
- the blockedcreationDate
- the creation datelastLoginDate
- the last login dategroups
- the groupspublic int getId()
public void setId(int id)
id
- the new idpublic java.lang.String getName()
public void setName(java.lang.String name)
name
- the new namepublic java.lang.String getPassword()
public void setPassword(java.lang.String password)
password
- the new passwordpublic java.lang.String getPlainPassword()
public void setPlainPassword(java.lang.String plainPassword)
plainPassword
- the new plain passwordpublic java.lang.String getActionToken()
public void setActionToken(java.lang.String actionToken)
actionToken
- the new action tokenpublic java.lang.String getEmail()
public void setEmail(java.lang.String email)
email
- the new emailpublic int getTryNumber()
public void setTryNumber(int tryNumber)
tryNumber
- the new try numberpublic boolean isBlocked()
public void setBlocked(boolean blocked)
blocked
- the new blockedpublic java.util.Date getCreationDate()
public void setCreationDate(java.util.Date creationDate)
creationDate
- the new creation datepublic java.util.Date getLastLoginDate()
public void setLastLoginDate(java.util.Date lastLoginDate)
lastLoginDate
- the new last login datepublic java.util.Collection<AccountGroupJPA> getGroups()
public void setGroups(java.util.Collection<AccountGroupJPA> groups)
groups
- the new groups