EOAttribute att;
NSMutableArray<EOProperty> path = new NSMutableArray<EOProperty>();
int numPieces = pieces.count();
if (numPieces == 1 && null == entity.anyRelationshipNamed(name)) {
att = entity.anyAttributeNamed(name);
if (null == att) { return null; }
return expression.sqlStringForAttribute(att);
}
for (int i = 0; i < numPieces - 1; i++) {