[appengine-java] Scalability of inequality filters for multiple fields via Hilbert curve

2011-07-04 Thread Max
Hi all, Would like to know if there are any of you guys ever tried to use space filling curve like Hilbert curve to build index for multiple inequality filters. Seems like for any continuous field like long or date, the number of ranges (to be merged) to perform a accurate query is

[appengine-java] Bytearrays as Strings in Google Datastore

2011-07-04 Thread meiaestro
Hi experts, I have following Problem with storing a Bytearray as String in the google datastore: I create a salt during account creation to hash the users passwordword which then I store in the google datastore as String. SecureRandom sr = SecureRandom.getInstance(SHA1PRNG); byte[] salt = new

Re: [appengine-java] Re: Image Upload From Android Phone

2011-07-04 Thread Bruno Fuster
Hi, 1) you don't need to store it anywhere, appengine will do that using the generated upload uri before calling your servlet I have a post about it using objective-c: http://goo.gl/e4q3u On Sun, Jul 3, 2011 at 11:01 AM, dharma teja vooturi dharmas...@gmail.comwrote: I tried doing that ...but

[appengine-java] JDO: how to add a child without the collection

2011-07-04 Thread Thiago
Hi. I'm using Google App Engine and I really liked it. It was a bit difficult in the beginning because there are more documentation for Python and I only know Java but now I think I'm going well. I'm using JDO and I understand that do add a child to a one to many relationship I need to do this:

[appengine-java] Aw: Bytearrays as Strings in Google Datastore

2011-07-04 Thread meiaestro
Solved it by using ShortBlob instead of String in datastore. Cheers! -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine-java/-/ElXraFqHxq0J. To

[appengine-java] How to update a record in Google Apps data store

2011-07-04 Thread Swaminathan
Hi, This is swaminathan, am now working on GAE/J. I am happy to deploy an application in cloud using GAE. In my project, i have just created a record in the data store and i need to update/overwrite the record. When i create a record, i get a auto generated Key. I have a query like 'How to

[appengine-java] Can I use INTEGER_IDX field of Entity in a JDOQL query?

2011-07-04 Thread ksafez216
My code: Query q = pm.newQuery(select from + Phrase.class.getName() + where :p1.contains(phrase) phrases_INTEGER_IDX == 0); ListPhrase phraseList = (ListPhrase) q.execute(matches); This returns the following error: Unexpected expression type while parsing query. Are you certain that a

[appengine-java] Why can't I call startsWith() on a custom parameter in JDOQL Query?

2011-07-04 Thread ksafez216
Am I really not allowed to perform the following query? Query q = pm.newQuery(select from + Phrase.class.getName() + where match.startsWith(phrase.toLowerCase()) sectionNum == 0); q.declareParameters(String match); Based on previous posts by Mr. Ross, the answer is no. But I just wanted to

[appengine-java] How to update a record in Google Apps data store

2011-07-04 Thread SwaminathanG
Hi, This is swaminathan, am now working on GAE/J. I am happy to deploy an application in cloud using GAE. In my project, i have just created a record in the data store and i need to update/overwrite the record. When i create a record, i get a auto generated Key. I have a query like 'How to

[appengine-java] Problem with BlobStore

2011-07-04 Thread Bilel Labidi
Hi Am working on a project using GWT+GAE, i try to add a user profil (BlobService to uplad image). This works on local client but once I upload it to online and open the app, it shows the error message as follows Uncaught exception from servlet

[appengine-java] Entity not being recognized in datastore - and so many channels getting created unnecessarily

2011-07-04 Thread ksafez216
When a user logs in a new channel is created, and I add an entity of kind ChannelClient to datastore and store the token. When the user logs in again or refreshes the page, it should check the datastore to see if the ChannelClient entity exists. If it does, it uses that token. If it doesn't,

[appengine-java] Failed to compile jsp files.

2011-07-04 Thread ~Juli~
Hi all! I faced with probem that i couldn't update war because jsp compilation failed. --- An error occurred at line: -1 in the generated java file extension dir=C:\Program

[appengine-java] How can I make sure a Collection of child classes gets fetched in a query?

2011-07-04 Thread ksafez216
After I get a Command object using PersistenceManager.getObjectById(), and then try to access the ArrayListAction member variable (see code below) I get this error: The datastore does not support joins and therefore cannot honor requests to place related objects in the default fetch group. The

Re: [appengine-java] How to update a record in Google Apps data store

2011-07-04 Thread Thiago Rossi
You just need to retrieve it, change it and close the persistence manager. No makePersistent method needed. For example: public void updateEmployeeTitle(User user, String newTitle) { PersistenceManager pm = PMF.get().getPersistenceManager(); try { Employee e =

Re: [appengine-java] Problem with BlobStore

2011-07-04 Thread jMotta
In fact there is, but yet your application need to enable billing. http://code.google.com/appengine/docs/quotas.html#Blobstore *Jayr Motta* Software Developer * * I'm on BlackBeltFactory.comhttp://www.blackbeltfactory.com/ui#!User/jmotta/ref=jmotta ! On Mon, Jul 4, 2011 at 9:31 AM, Bilel

Re: [appengine-java] Aw: Bytearrays as Strings in Google Datastore

2011-07-04 Thread jMotta
Thanks for the clarification, I was curious about what could be the causing of the error! :) *Jayr Motta* Software Developer * * I'm on BlackBeltFactory.comhttp://www.blackbeltfactory.com/ui#!User/jmotta/ref=jmotta ! On Mon, Jul 4, 2011 at 12:54 PM, meiaestro jmalbre...@gmx.de wrote:

[appengine-java] Re: JDO: how to add a child without the collection

2011-07-04 Thread objectuser
For something large like that, I think you'll want to make your relationship from User to LoginHistory an unowned relationship. That simply means that LoginHistory will store an ID that points to User instead of User having a collection of LoginHistory objects. The Google docs have more on

Re: [appengine-java] JDO: how to add a child without the collection

2011-07-04 Thread jMotta
Thiago, Nowadays the amount of documentation and features of both interfaces are almost equals. Java has some characteristics that Python doesn't and vice-versa. But let's cope with your problem, the solution given by objectuser is valid and should work fine, the only problem is that you'll

[appengine-java] [Objectify] logical constraints and null values

2011-07-04 Thread hadf
Hello, Two questions : How can I filter a query with logical constraints (or, and) ? (where attribut = foo1 or attribut = foo2) And furthermore, how can I filter a query with null or non null values ? (where attribut is null / where attribut is not null) Thank you for your help :) -- You

Re: [appengine-java] [Objectify] logical constraints and null values

2011-07-04 Thread Bruno Fuster
AND: ofy.query(Obj.class).filter(name, value).filter(email, value).list(); OR ofy.query(Obj.class).filter(name in, Arrays.asList(name1, name2)).list(); I'm not sure about null/not null values on queries. Take a look at the Partial Indexes section, it might be helpful for you situation.

Re: [appengine-java] [Objectify] logical constraints and null values

2011-07-04 Thread jMotta
Until where I know, there is no feature to accomplish the OR, AND is implicit when you add more filters. IS NULL is equals to .filter(attr, null); IS NOT NULL is equals to .filter(attr != null); If you find something about doing OR, let us know! :) *Jayr Motta* Software Developer * * I'm on

Re: [appengine-java] [Objectify] logical constraints and null values

2011-07-04 Thread Bruno Fuster
jMotta, You can make OR queries using lists. The datastore will run one query for each parameter and then join the results for you. Like I said: ofy.query(Obj.class).filter(name in, Arrays.asList(name1, name2)).list(); works like a champ :) Regards, On Mon, Jul 4, 2011 at 6:01 PM, jMotta

[appengine-java] Re: [Objectify] logical constraints and null values

2011-07-04 Thread hadf
Thanks guys :) On 4 juil, 23:10, Bruno Fuster brunofus...@gmail.com wrote: jMotta, You can make OR queries using lists. The datastore will run one query for each parameter and then join the results for you. Like I said: ofy.query(Obj.class).filter(name in, Arrays.asList(name1,

Re: [appengine-java] Re: JDO: how to add a child without the collection

2011-07-04 Thread Thiago Rossi
True. I had forgotten about the unowned relationships, but I think again I will need to retrieve the collections in order to add the new Key, right? Of course it's much better to retrieve a collection of keys than a collection of entities. And maybe making the relationship from the LoginHistory to

Re: [appengine-java] How to update a record in Google Apps data store

2011-07-04 Thread SwaminathanG
thiagorossi, Thanks for your reply and clear explanation with the code. Do we can try this solution in GWT. If not, can you please help me out. Thank You On Mon, Jul 4, 2011 at 9:42 PM, Thiago Rossi thiagorossi...@gmail.comwrote: You just need to retrieve it, change it and close the

Re: [appengine-java] How to update a record in Google Apps data store

2011-07-04 Thread SwaminathanG
*Jayr Motta,* * * Thanks for your link. * * On Mon, Jul 4, 2011 at 10:46 PM, jMotta jayrmo...@gmail.com wrote: Swaminathan, None of us will explain better than the official documentation does, try it: http://code.google.com/appengine/docs/java/datastore/ *Jayr Motta* Software Developer *