No I'm not retrieving all roles, they are filtered by names. But I can't see where you could have two roles with name "admin" in db for instance, because a UNIQUE constraint should be made on this field.