NSArray bugs = ds.fetchObjects();
return bugs;
}
public EOFetchSpecification fetchSpecificationForRecentBugs() {
EOFetchSpecification fs = newFetchSpecification(
andQualifier(
new EOKeyValueQualifier(Key.DATE_MODIFIED, EOQualifier.QualifierOperatorGreaterThan,
new NSTimestamp().timestampByAddingGregorianUnits(0, -1, 0, 0, 0, 0)),
negateQualifier(qualifierForState(State.CLOSED))));
fs.setSortOrderings(new NSArray(new EOSortOrdering(Key.DATE_MODIFIED, EOSortOrdering.CompareDescending)));
fs.setIsDeep(false);
return fs;
}