[appengine-java] How to efficiently retrieve all the keys of a particular entity

2011-09-15 Thread cghersi
... // other properties How may I retrieve both idPic and title in a single efficient query? Something like Query q = new Query(select idPic, title from + TPImage.class.getName()); but more efficient? Thank you very much! Bye cghersi -- You received this message because you are subscribed to the Google

[appengine-java] How to count and group with BigTable

2011-09-13 Thread cghersi
much! Best cghersi -- 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

[appengine-java] Google plugin for Eclipse seems not to update 1.5.3 SDK version

2011-08-26 Thread cghersi
cghersi -- 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

[appengine-java] Problem with Memcache

2011-08-26 Thread cghersi
) { log.severe(Cannot instantiate caches); } } and particularly at the line cache.clear(). What can I do? Is there any property that I'm missing? Thank you very much for the help! Bye cghersi -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group

[appengine-java] Re: Problem with Memcache

2011-08-26 Thread cghersi
is not available? Do they throw an exception? what else? I cannot find such hints in the documentation. Moreover, when the method cache.clear() fails throwing the exception, may I assume that the cache will be empty the next time I use it or not? Thank you very much! Best cghersi On 26 Ago, 11:15

[appengine-java] Re: Google plugin for Eclipse seems not to update 1.5.3 SDK version

2011-08-26 Thread cghersi
Hi Roberto, thanks for the response. I think I'll have to proceed in the manual way as you said; I hoped not to perform such action as the automatic way is far better!! Do you know how many days (more or less) they need to update the plugin to the latest version? Thanks bye cghersi On 26 Ago

[appengine-java] Re: Sometimes arraylist stored in Datastore are not correctly retrieved

2011-06-10 Thread cghersi
@Nathan: I use ArrayList for a bounch of other properties in several other objects, and usually they are completely OK... On 10 Giu, 05:31, Nathan Stiles stiles.nat...@gmail.com wrote: I have almost 0 experience I'm just reading to learn a bit.  It seems rather ambitious to store an ArrayList?  

[appengine-java] Re: Sometimes arraylist stored in Datastore are not correctly retrieved

2011-06-10 Thread cghersi
OK, thanks, I'll try with this trick... Bye cghersi On 10 Giu, 06:22, yuvi yuvalheft...@gmail.com wrote: Hi, My declarations are a bit different but I have seen this happening GAE not loading the subitems by default in some cases, then if you close the PersistenceManager, subitems

[appengine-java] Sometimes arraylist stored in Datastore are not correctly retrieved

2011-06-09 Thread cghersi
very much! Bye cghersi -- 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

[appengine-java] Some very long logs are cut in the Admin Console

2011-06-09 Thread cghersi
much!! Bye cghersi -- 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

[appengine-java] How to manually add child entities to datastore via AdminConsole

2011-04-21 Thread cghersi
the child entity to its parent? I'm not able to generate nor change the key, and I cannot see any other graphic utility to perform such action. Perhaps this action is not permitted for child entities... Any hints about this? Thank you very much Bye cghersi -- You received this message because you

[appengine-java] Re: How to completely erase the datastore of an app

2011-02-14 Thread cghersi
Hi meyertee, It says exactly what you have written. But nevertheless I'm not able to manage this issue!! I'm very puzzled... Any other hint? Thank you very much Best CRI On 13 Feb, 16:22, meyertee meyer...@gmail.com wrote: What does it say when you go from your dashboard to Administration -

[appengine-java] Re: How to completely erase the datastore of an app

2011-02-09 Thread cghersi
Hi meyertee, I'm using the account which I've created the app with!! Where may I set the authentication permissions? Thank you very much! Bye CRI On Jan 18, 7:38 pm, meyertee meyer...@gmail.com wrote: Are you using Google Apps to authenticate users? If you are, try signing in with a Google

[appengine-java] Re: How to completely erase the datastore of an app

2011-01-18 Thread cghersi
Hi meyertee, I followed your hint and I were able to deploy a new Python version, but now I'm not able to use Datastore Admin, because an error is shown, telling me that I'm not corretly authenticated!! /_ah/datastore_admin/?app_id=xxx 500 0ms 0cpu_ms 0kb Mozilla/5.0 (Windows; U; Windows NT 5.1;

[appengine-java] Re: a basic tutorial on using the new 1.3.8 datastore delete with a Java app

2011-01-17 Thread cghersi
requests are served from a subdomain of that domain or it has been approved through the Google Apps Control Panel. See http://code.google.com/appengine/articles/auth.html Any hint??? Thank you very much!! Bye cghersi -- You received this message

[appengine-java] Re: Concurrency issue when dealing with datastore

2011-01-05 Thread cghersi
Hi Yegor, thanks for your suggestions. But I yet cannot understand how to cope with transactions in the scenario you have described. Let's say that I have the following (usual) example: public class User { Long userID; //it is the PK of the object ArrayListContact contacts; ... } public

[appengine-java] Re: How to completely erase the datastore of an app

2010-12-31 Thread cghersi
the Datastore viewer of the admin console: you can select and delete all entities from the viewer screen. regards didier On Dec 29, 4:52 pm, cghersi cristiano.ghe...@gmail.com wrote: Hi, I've got an app on GAE with 4 versions, up to now. Until the 4th version I had an entity

[appengine-java] Re: Concurrency issue when dealing with datastore

2010-12-29 Thread cghersi
On Dec 20, 8:42 pm, cghersi cristiano.ghe...@gmail.com wrote: Hi all, I'm very new with GoogleAppEngine, and I cannot yet understand how to deal with Transactions and concurrency. I've got a servlet called by a queue task where I need to manipulate several kind of objects. I'm

[appengine-java] How to correctly update a persistent object

2010-12-21 Thread cghersi
you very much Best cghersi -- 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

[appengine-java] How to suddenly save changes to datastore using JDO

2010-12-21 Thread cghersi
retrieve my object from datastore with a factory method and create my own SAVE() methods in my object classes. Is it applicable this pattern to JDO and GoogleAppEngine or am I forced to use the same instance of PersistenceManager both to fetch and save the data? Thank you very much! Bye cghersi -- You

[appengine-java] Re: JDO: Null parent on some children objects

2010-08-31 Thread cghersi
(mySecondObject); For the owner... I'm with you, it is an ugly thing to create a parent from the child... Thanks cghersi On 30 Ago, 16:52, Frederik Pfisterer pfiste...@gmail.com wrote: while if I understood your explanation I don't have to invoke pm.makePersistent() on mySeconObject

[appengine-java] Re: JDO: Null parent on some children objects

2010-08-27 Thread cghersi
getTags() { if (tags==null) tags= new ArrayListString(); return tags; } ... } Do I have to remove all the check of the type if (obj==null) obj=new...? Thank you very much for your help! Best cghersi On 27 Ago, 10:58, Frederik Pfisterer pfiste...@gmail.com wrote: Hi, the problem

[appengine-java] JDO: Null parent on some children objects

2010-08-26 Thread cghersi
Hi everybody, I'm struggling with a strange problem with JDO. I've got two PersistenCapable classes, one having a Collection of objects of the second, something like this: class First { @Persistent @PrimaryKey Long id; @Persistent(mappedby=owner) ArrayListSecond list = new

[appengine-java] JDO: Null parent on some children objects

2010-08-26 Thread cghersi
= new ArrayListSecond();) results in any strange behavior? 4) Do I need to add any other annotation to owner field of Second class? Thank you very much for your help!! Best regards cghersi -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group

[appengine-java] Re: JDO: Null parent on some children objects

2010-08-26 Thread cghersi
Hi Diego, thank you but unfortunately I strictly followed what stated in that page, and the result is the problem I posted!! Any other hint? Thank you very much, Best Cghersi On 26 Ago, 16:09, Diego Fernandes penet...@gmail.com wrote: Hi, i may find something herehttp://code.google.com

[appengine-java] Class XXX has collection field x and this has no mapping in the table for the element class YYY owner field y

2010-08-18 Thread cghersi
Hi to everybody, I'm new to JDO and Google App Engine, and I'm facing a show-stopper problem right now. I've got two classes, TPUser and TPContact, and TPUser has a list of TPContacts. Here there are the code snippets: @PersistenceCapable(identityType = IdentityType.APPLICATION, detachable =

[appengine-java] Facebook API: Invalid uri contanining localhost

2010-08-18 Thread cghersi
Hi, I'm trying to connect to Facebook API, and to get the access token. I'm able to retrieve the code parameter following the instructions in: http://developers.facebook.com/docs/authentication/ but when I want to exchange this code with the access token, I find a strange behaviour: in my

[appengine-java] Re: Facebook API: Invalid uri contanining localhost

2010-08-18 Thread cghersi
(serverAddr) + landingFacebook + type=client_credclient_secret= + fbAPISecret + code= + URLEncoder.encode(code, UTF-8); Bye CRI On Aug 18, 12:07 pm, cghersi cristiano.ghe...@gmail.com wrote: Hi, I'm trying to connect to Facebook API

[appengine-java] Class XXX has collection field x and this has no mapping in the table for the element class YYY owner field y

2010-08-17 Thread cghersi
Hi to everybody, I'm new to JDO and Google App Engine, and I'm facing a show-stopper problem right now. I've got two classes, TPUser and TPContact, and TPUser has a list of TPContacts. Here there are the code snippets: @PersistenceCapable(identityType = IdentityType.APPLICATION, detachable =

[appengine-java] Users management for non-google accounts

2010-07-23 Thread cghersi
Good afternoon, I'm very new to GAE, and I cannot understand how may I merge the account management for users having and not having a Google account. I would like to have a single sign-in page (google style) where users with google accounts can type their Google credentials and enter in my app,