Package net.sf.basedb.core.data.keyring
Class UserRoles
java.lang.Object
net.sf.basedb.core.data.keyring.UserRoles
- All Implemented Interfaces:
Serializable
Class for mapping the
UserRoles
table.- Version:
- 2.0
- Author:
- Nicklas
- See Also:
- Last modified
- $Date: 2015-04-16 13:47:41 +0200 (to, 16 apr 2015) $
-
Field Summary
Modifier and TypeFieldDescriptionprivate int
private static final long
private int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Check if this object is equal to anotherUserRoles
object.int
Get the id of the role.int
Get the id of the user.int
hashCode()
Calculate the hash code for the object.void
setRoleId
(int roleId) Set the id of the role.void
setUserId
(int userId) Set the id of the user.
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
userId
private int userId -
roleId
private int roleId
-
-
Constructor Details
-
UserRoles
public UserRoles()Create a newUserRoles
object.
-
-
Method Details
-
getUserId
public int getUserId()Get the id of the user. -
setUserId
public void setUserId(int userId) Set the id of the user. -
getRoleId
public int getRoleId()Get the id of the role. -
setRoleId
public void setRoleId(int roleId) Set the id of the role. -
equals
Check if this object is equal to anotherUserRoles
object. They are considered to be the same if the user id and the role id are the same. -
hashCode
public int hashCode()Calculate the hash code for the object.
-