EOAttribute pk = srcEntity.primaryKeyAttributes().lastObject();
srcEntityForeignKey = expression.sqlStringForAttribute(pk);
}
EOJoin parentChildJoin = ERXArrayUtilities.firstObject(relationship.joins());
String destEntityForeignKey = "." + expression.sqlStringForSchemaObjectName(parentChildJoin.destinationAttribute().columnName());
EOQualifier qual = EOQualifierSQLGeneration.Support._schemaBasedQualifierWithRootEntity(subqualifier, destEntity);
EOFetchSpecification fetchSpecification = new EOFetchSpecification(destEntity.name(), qual, null, false, true, null);
EODatabaseContext context = EODatabaseContext.registeredDatabaseContextForModel(destEntity.model(), EOObjectStoreCoordinator.defaultCoordinator());