Checks for multiple id attributes in one entity.