Class UserRoles

  • All Implemented Interfaces:
    Serializable

    public final class UserRoles
    extends Object
    implements Serializable
    Class for mapping the UserRoles table.
    Version:
    2.0
    Author:
    Nicklas
    See Also:
    Serialized Form
    Last modified
    $Date: 2015-04-16 13:47:41 +0200 (to, 16 apr 2015) $
    • Field Detail

      • userId

        private int userId
      • roleId

        private int roleId
    • Constructor Detail

      • UserRoles

        public UserRoles()
        Create a new UserRoles object.
    • Method Detail

      • 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

        public boolean equals​(Object o)
        Check if this object is equal to another UserRoles object. They are considered to be the same if the user id and the role id are the same.
        Overrides:
        equals in class Object
      • hashCode

        public int hashCode()
        Calculate the hash code for the object.
        Overrides:
        hashCode in class Object