@Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        Role role = (Role) o;

        if (idrole != role.idrole) return false;
        if (name != null ? !name.equals(role.name) : role.name != null) return false;

        return true;
    }