public NSDictionary<String, Integer> tagCount(EOEditingContext editingContext, NSSelector selector, int count, int limit, EOQualifier additionalQualifier) { NSMutableArray<EOAttribute> fetchAttributes = new NSMutableArray<>(); ERXEOAttribute tagNameAttribute = new ERXEOAttribute(_entity, _tagsRelationship.name() + "." + ERTag.NAME_KEY); tagNameAttribute.setName("tagName"); fetchAttributes.addObject(tagNameAttribute);
fetchAttributes.addObjectsFromArray(_entity.primaryKeyAttributes()); ERXEOAttribute tagNameAttribute = new ERXEOAttribute(_entity, _tagsRelationship.name() + "." + ERTag.NAME_KEY); tagNameAttribute.setName("tagName"); fetchAttributes.addObject(tagNameAttribute); ERXEOAttribute tagIDAttribute = new ERXEOAttribute(_entity, _tagsRelationship.name() + ".id"); tagIDAttribute.setName("id"); tagsFetchAttributes.addObject(tagIDAttribute); tagsFetchAttributes.addObject(tagNameAttribute);