[appengine-java] Re: iterating over Extent throwing NullPointerException on extent.closeAll()

2012-01-31 Thread datanucleus
Probably a bug, but you could just use the more normal
Query q = pm.newQuery(MyClass.class);
List results = (List)q.execute();
which is widely tested in Googles tests.

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



Re: [appengine-java] Re: iterating over Extent throwing NullPointerException on extent.closeAll()

2012-01-31 Thread John Goche
Thanks for the confirmation.
Using Query instead of Extent is working for me.

On Tue, Jan 31, 2012 at 11:37 AM, datanucleus andy_jeffer...@yahoo.comwrote:

 Probably a bug, but you could just use the more normal
 Query q = pm.newQuery(MyClass.class);
 List results = (List)q.execute();
 which is widely tested in Googles tests.


It would be good if we added this test case in google's tests since Extent
is in the docs:
http://code.google.com/appengine/docs/java/datastore/jdo/queries.html
or else the docs could be updated to reflect the fact that this is not
supported.
In any case I'm fine using queries instead since I wasn't completely clear
on
from the docs what the advantage of using Extent instead of Query would
have been if any.

Best,

JG

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.