[appengine-java] Re: gae.parent-pk doesnt work in list query
>On Aug 12, 7:03 pm, datanucleus wrote: > Invalid JPQL (a Key cannot equal a List). This makes more sense > Select c from ChatUser c where c.parentKey IN :parentKey i tried the IN clause it get the same error. @Basic @Extension(vendorName="datanucleus", key="gae.parent-pk", value = "true") private Key parentKey; Query chatUserQuery = em.createQuery("Select c from ChatUser c where c.parentKey IN (:parentKeyList)"); produces error java.lang.ClassCastException: java.util.ArrayList cannot be cast to com.google.appengine.api.datastore.Key at org.datanucleus.store.appengine.query.DatastoreQuery.internalPkToKey(DatastoreQuery.java: 1484) But when i use a normal key field everything works. @Basic private Key parentKey2; Query chatUserQuery = em.createQuery("Select c from ChatUser c where c.parentKey2 IN (:parentKeyList)"); the issue seems to be with the "gae.parent-pk" not the query. -lp -- 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: gae.parent-pk doesnt work in list query
> 1.I am using the query Select c from ChatUser c where c.key =:keyList > elsewhere and it is working fine. How can it be working? i now concerned how the above query can work. i assumed it was producing an IN/OR query, hence limited by 30 OR statements. however unit testing in the development environment shows that i can run over 130 elements in the List parameter without any fault generation. ie List parentList = new ArrayList(); parentList.add(user1.getKey()); parentList.add(user2.getKey()); for( int i=0; i<130; i++){ parentList.add(KeyFactory.createKey(ChatUser.CLASS_NAME, i +11) ); } what i thought i understood is now very confusing. -lp -- 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: gae.parent-pk doesnt work in list query
On Aug 12, 7:03 pm, datanucleus wrote: > Invalid JPQL (a Key cannot equal a List). This makes more sense > Select c from ChatUser c where c.parentKey IN :parentKey thanks for the response. however i have the following issues. 1.I am using the query Select c from ChatUser c where c.key =:keyList elsewhere and it is working fine. How can it be working? 2. When i run the IN i get the following error. org.datanucleus.store.appengine.query.DatastoreQuery $UnsupportedDatastoreFeatureException: Problem with query : Unexpected expression type while parsing query: org.datanucleus.query.expression.SubqueryExpression have got these queries completely wrong? -lp -- 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: secure appengine urls with security constraints
Anyone has ideas on this topic? I don't want my application on appengine to be publicly available to anyone who knows the url. My client app running on mobile handsets ONLY should be able to hit my app on appengine servers. -- 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/-/MWUJofGeYZoJ. 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] Creating an image into the blobstore by programmation
Hi everyone, I tried unsuccessfully to create image pragmatically on the server side and add it to the blobstore. By following the instructions in the tutorial about writing file, I end up with an error on that line: AppEngineFile file =fileService .createNewBlobFile("text/plain"); I want to use the html5 new multiple upload input to add a lot of images into my blobstore. If anyone has encountered something similar, please help me. thanks, -- Christian Goudreau www.arcbees.com -- 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.
Re: [appengine-java] Re: Entity modelling
Hi, Thanks for your reply. The category is not related to the group - category holds value like Science/Tech/Music while Group stores value like Teens/Kids/Adult. The reason I have these two fields I want to be able to sort the forum according to category and follow by group. So in the forum object I have (field1, ... fieldN, forumcategoryid, forumgroupid) and forumcategory object (forumcategoryid, field1...) and forumgroup object (forumgroupid, field1...). for small app, I think even without mappedBy annonation in relevant class the application will still work. I just have to tie up everything at app level, any advice? btw, ive gone through the links u given, but there isnt enough app-like example on one-to-many relationship (only the simple guestbook example) On Tue, Aug 9, 2011 at 5:07 PM, Simon Knott wrote: > Given that the target GAE datastore should be optimised for reads, since > writes are expensive, normalization of data is by no means the way to go. > > Are Categories and Groups joined in any way? i.e. Has a specific Category > got a set of groups, or the other way around? If not, then storing the > group/category as a property within the Forum seems fine to me. > > I would strongly suggest that you read up on the datastore before > proceeding however - the GAE datastore doesn't really consist of tables. I > would read the following docs in their entirety before doing too much more > work: > >- Datastore Overview - >http://code.google.com/appengine/articles/datastore/overview.html >- Java Datastore Docs - >http://code.google.com/appengine/docs/java/datastore/ >- Objectify Docs - These give a good overview of restrictions and best >practices when working with the datastore >http://code.google.com/p/objectify-appengine/wiki/Concepts?tm=6 > > -- > 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/-/XdtplUMwmLAJ. > > 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. > -- 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.
Re: [appengine-java] Re: date comparison fails
Does not work for me Not sure why it fails . I even tried: Query query = pm.newQuery(AdUsage.class); query.setFilter("smsUseDate <= smsUseDateParam && smsUseDate >= smsUseDateParam &&" + " vendorSeq == vendorSeqParam"); query.declareParameters("java.util.Date smsUseDateParam, Long vendorSeqParam"); @SuppressWarnings("unchecked") List usageList = (List)query.execute(today, chosenVendorSeq); and it fails to match the record. Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Fri, Aug 12, 2011 at 10:16 AM, suchitra nair wrote: > hey .. > check out the following link.. M not sure but i guess in gae we can have > more than 1 inequality operators on a single property. So as suggested in > the following link, u cn chk for <= and also add >= on ur date field and the > result should give records with date '=' to that of ur date value .. Just a > suggestion. M new to gae too .. hope this helps ... > > regards > suchitra > > http://stackoverflow.com/questions/3600779/google-app-engine-jdo-use-date-in-filter > > On Fri, Aug 12, 2011 at 8:18 AM, Vik wrote: > >> any help on this plz? >> >> Thankx and Regards >> >> Vik >> Founder >> http://www.sakshum.org >> http://blog.sakshum.org >> >> >> On Tue, Aug 9, 2011 at 8:51 PM, Vik wrote: >> >>> Hie >>> >>> I am trying to execute following query: >>> >>> Query query = pm.newQuery(AdUsage.class, "smsUseDate == :smsUseDate && " >>> + >>> " vendorSeq == :vendorSeq"); >>> List usageList = (List)query.execute(today, >>> chosenVendorSeq); >>> >>> >>> the vendorSeq is matching and the passed date is: Tue Aug 09 00:00:00 >>> UTC 2011 >>> >>> In AdUsage table i have value for: Tue Aug 09 00:00:00 UTC 2011 >>> >>> but it fails to match. any clues why? >>> >>> Thankx and Regards >>> >>> Vik >>> Founder >>> http://www.sakshum.org >>> http://blog.sakshum.org >>> >> >> -- >> 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. >> > > -- > 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. > -- 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: sitemap.xml and urllist.txt
any help on this plz? Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Fri, Aug 12, 2011 at 8:17 AM, Vik wrote: > any advise on this plz? > > Thankx and Regards > > Vik > Founder > http://www.sakshum.org > http://blog.sakshum.org > > > On Wed, Aug 10, 2011 at 12:31 PM, Vik wrote: > >> Hie >> >> I have sitemap.xml and urllist.txt files in my web root folder of my >> gwt+gae app. However, on deploying these files are still not accessible. >> I can see other files at the same place like sitemap.html is accessible. >> >> Any advise why this is happening? >> >> Thankx and Regards >> >> Vik >> Founder >> http://www.sakshum.org >> http://blog.sakshum.org >> > > -- 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] Total Stored Data billing is misleading
My admin console shows 'Size of all entities' is 1 GByte. My Billing Status show 'Total Stored Data' is 9.45 GBytes. It seems the billable 'Total Stored Data' is affected by datastore entities, indexes, memcache, task queue and other background mechanism. I will be a much happier customer if I know why I'm paying for the unknown 8.45 GBytes. Please at least give me enough confidence that the unknown 8.45 GBytes is not a system error. Thanks! http://gochild2009.appspot.com -- 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.