[google-appengine] Re: questions on datastore (lowercase comparison / one character String )

2010-03-23 Thread vchalmel
Ok Thanks your advices solved my problem with lowercase Comparison. I still faces issues with these one-character Strings problem, do you know why, when i try to compare a String Attribute in Datastore to a one-character String, it throws this java.lang.Character cannot be cast to

[google-appengine] questions on datastore (lowercase comparison / one character String )

2010-03-22 Thread vchalmel
Hi ! I wonder how to compare a String stored in a datastore entity (field login) to an entry (also named login) considering their lowercase version : - I tried : SELECT count(this) FROM +Gestionnaire.class.getName()+ WHERE LowerCase(login)== LowerCase('+login+') which throws an exception I have

[appengine-java] initialization of datastore

2010-03-14 Thread vchalmel
hi ! I want to set up an initialization script, and i must, in a first part, check if the appengine datastore is empty. I tried to send a query, with : query.setUnique(true); if(query.execute()==null) But it throws a null pointer exception. How to check that my datastore is empty ? -- You