Class Role


  • @Entity
    public class Role
    extends Object
    Class that represents user's role
    • Constructor Detail

      • Role

        public Role​(String name)
        creates new role with given params
        Parameters:
        name - role name
    • Method Detail

      • equals

        public boolean equals​(Object o)
        Gets whether two instances represents the same role
        Overrides:
        equals in class Object
        Parameters:
        o - comparing role
        Returns:
        whether two instances represents the same role
      • hashCode

        public int hashCode()
        Gets the hash code
        Overrides:
        hashCode in class Object
        Returns:
        hash code