Fixed.  Although you might prefer to issue a batch get() operation
instead of the query.  There might be a performance difference - I'm
not sure.

Jeff

On Wed, Apr 21, 2010 at 6:46 PM, Jeff Schnitzer <j...@infohazard.org> wrote:
> Looks like you found a bug.  I should be able to have a unit test and
> a fix checked in tonight.  Sorry about that!
>
> Jeff
>
> On Wed, Apr 21, 2010 at 1:43 PM, Larry White <ljw1...@gmail.com> wrote:
>> Hi,
>>
>> I'm trying to pass in a collection of Strings to be used in a filter using
>> Objectify (which I LOVE, btw). I'm doing it like so:
>>
>>     Query<SNote> query = ofy.query(SNote.class).filter("id IN",
>> results).limit(limit).offset(offset).order("-timestamp");
>>
>> where the results parameter is a non-empty ArrayList<String>.
>>
>> I'm getting the exception:
>>
>> 64951 [btpool0-4] ERROR com.deathrayresearch  -
>> java.lang.IllegalArgumentException: A collection of values is required.
>>     at
>> com.google.appengine.api.datastore.DataTypeUtils.checkSupportedValue(DataTypeUtils.java:153)
>>     at
>> com.google.appengine.api.datastore.Query$FilterPredicate.<init>(Query.java:543)
>>     at com.google.appengine.api.datastore.Query.addFilter(Query.java:231)
>>     at com.googlecode.objectify.impl.QueryImpl.filter(QueryImpl.java:102)
>>     at com.googlecode.objectify.impl.QueryImpl.filter(QueryImpl.java:28)
>>
>> The id parameter contains Strings and I think an ArrayList<String> qualifies
>> as a "collection of values". Can anyone tell me what I'm doing wrong?
>>
>> thanks much
>>
>> Larry
>>
>> --
>> 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-j...@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.
>>
>

-- 
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-j...@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.

Reply via email to