public final class UserRoles extends Object implements Serializable
UserRoles
table.Modifier and Type | Field and Description |
---|---|
private int |
roleId |
private static long |
serialVersionUID |
private int |
userId |
Constructor and Description |
---|
UserRoles()
Create a new
UserRoles object. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o)
Check if this object is equal to another
UserRoles
object. |
int |
getRoleId()
Get the id of the role.
|
int |
getUserId()
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.
|
private static final long serialVersionUID
private int userId
private int roleId
public int getUserId()
public void setUserId(int userId)
public int getRoleId()
public void setRoleId(int roleId)
public boolean equals(Object o)
UserRoles
object. They are considered to be the same if the user id and the
role id are the same.