[appengine-java] Re: Queries in 1.2.5 don't retrieve com.google.appengine.api.datastore.Text data anymore?

2009-09-04 Thread rick

Did you change your code ?
Text and Blod are not part of the default fetch group.  Look at
http://www.datanucleus.org/products/accessplatform/jdo/fetchgroup.html
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[appengine-java] Re: Queries in 1.2.5 don't retrieve com.google.appengine.api.datastore.Text data anymore?

2009-09-04 Thread Dominik Steiner
Hi rick,

thank you very much for the fast answer, this was very helpful.

I didn't change my code, as i could switch locally in eclipse from GA  
1.2.2 to 1.2.5 without doing any code changes and in 1.2.2 it would  
retrieve the properties of type text or blob, in 1.2.5 it wouldn't.

Thanks to your link the solution was then to add

@Persistent(defaultFetchGroup=true)

to the fields with text or blob.

For me this is still a breaking change from 1.2.2 to 1.2.5, I think  
this should be clearly documented.

Thanks again for your post.

Dominik


 Did you change your code ?
 Text and Blod are not part of the default fetch group.  Look at
 http://www.datanucleus.org/products/accessplatform/jdo/fetchgroup.html
 


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[appengine-java] Re: Queries in 1.2.5 don't retrieve com.google.appengine.api.datastore.Text data anymore?

2009-09-04 Thread rick

Hi Dominik,
I am glad that you found a solution. There is an alternative. You
could annotate your class with  something like
@FetchGroup(name=detach_image, member...@persistent
(name=image_data)})
and then you could use
tx.begin();
pm.getFetchPlan().addGroup(detach_image);
Query q = pm.newQuery(...
...
That way they are fetched only when you need them.


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---