Raw rows do not return all records
Raw rows do not return all records
- Subject: Raw rows do not return all records
- From: Henrique Prange <email@hidden>
- Date: Sat, 20 Jun 2009 13:15:27 -0300
Hi everybody,
I'm facing a problem using raw rows fetching. The fetch returns less
records than I expect with this option. I've written the following
example to demonstrate the problem:
EOFetchSpecification fetchSpecification = new
EOFetchSpecification(entityName, qualifier, sortOrderings);
NSArray eos =
editingContext.objectsWithFetchSpecification(fetchSpecification);
System.out.println("The array of objects size is " + eos.size());
fetchSpecification.setFetchesRawRows(true);
fetchSpecification.setRawRowKeyPaths(keyPaths);
NSArray resultSet =
editingContext.objectsWithFetchSpecification(fetchSpecification);
System.out.println("The raw rows resultSet size is " +
resultSet.size());
I was expecting the same result printed in the console. But the size
of the result set is always smaller than the size of the array of
objects. Am I doing something wrong?
BTW, Im using WO 5.4.3.
Cheers,
Henrique
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden