[google-appengine] JDO query cursor usage questions

2010-09-17 Thread Rick Horowitz
I'm finding the JDO cursor usage documentation a bit confusing. According to the docs at http://code.google.com/appengine/docs/java/datastore/queriesandindexes.html#Query_Cursors To get the initial page of results: query.setRange(0, 20); // which makes sense Then to get the second page of resul

[google-appengine] Re: JDO query cursor usage questions

2010-09-19 Thread Rick Horowitz
gt; > Robert > > > > On Fri, Sep 17, 2010 at 16:57, Rick Horowitz wrote: > > I'm finding the JDO cursor usage documentation a bit confusing. > > According to the docs > > athttp://code.google.com/appengine/docs/java/datastore/queriesandindexe... > > &g

[google-appengine] Re: JDO query cursor usage questions

2010-09-22 Thread Rick Horowitz
HTML document, which would be functionally equivalent. If you > used ranges and offsets, you'd have to store page state anyway client side. > > > > On Sun, Sep 19, 2010 at 8:38 AM, Rick Horowitz wrote: > > I'm using a GWT UI. Is the recommended best practice to cache already

[google-appengine] authorize.net security question

2010-09-23 Thread Rick Horowitz
m looking for guidance on which would be most secure out of these options, or if anyone has a better suggestion. Thanks for any help on this, Rick Horowitz -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this gro

[google-appengine] Re: authorize.net security question

2010-09-23 Thread Rick Horowitz
> I would > not recommend just the memcache as it will/could eventually get > flushed.   Very true, you're right. I hadn't thought about it being flushed. > Most people would probably just hard code it on the App > Engine server code.  It might be a little more secure or closer to > Authorize.net'

[google-appengine] Can I send email from GAE/Java running in Eclipse?

2010-01-10 Thread Rick Horowitz
I'm trying to test sending email using Java from GAE SDK 1.3 while in development mode using the Eclipse Plugin. I'm using Eclipse Build id: 20090920-1017 and Java OpenJDK 1.6. Is this possible, or can I only send email when my app is actually deployed? I read the docs and I am aware that it says i

[google-appengine] Can't get owned relationship working with JDO and subclass

2009-11-16 Thread Rick Horowitz
I'm trying to persist a simple class relationship using JDO. My code is listed below and here's a brief overview of what I'm trying to do: I have 3 classes: Person, Customer (extends Person), and Address (referenced from Person). If I create a Person instance and an Address instance and call setA

[google-appengine] Re: Can't get owned relationship working with JDO and subclass

2009-11-19 Thread Rick Horowitz
base class) references an owned object, but gae doesn't seem to like it. I tried the base class as abstract and concrete, and tried the keys as type Key and as encoded String. No luck. Thanks very much for any help. Rick On Nov 15, 11:40 pm, Rick Horowitz wrote: > I'm trying to per

Re: [google-appengine] Re: Can't get owned relationship working with JDO and subclass

2009-11-19 Thread Rick Horowitz
mbedded class, though I suppose that wouldn't work if > multiple customers had the same address and addresses changed frequently > (though you could solve this by updating all matching embedded addresses if > an address changes in a transaction, making the Address the parent of the >

[google-appengine] Re: Can't get owned relationship working with JDO and subclass

2009-11-20 Thread Rick Horowitz
which I guess doesn't work just yet. I'll report back. Thanks. On Nov 19, 8:22 pm, Rick Horowitz wrote: > Thank you for responding. This is not good, but I guess it could be worse. > Google could be ignoring these problems instead of fixing them. One more > question. What

[google-appengine] Re: Can't get owned relationship working with JDO and subclass

2009-11-20 Thread Rick Horowitz
r example, a 3 level inheritance hierarchy, so I can't vouch for that. If I have to use this type of inheritance in my app, I will post another message to let people know how it turned out. In the mean time, I'm hoping that we'll see an update to fix this owned relationship by a sup

Re: [google-appengine] Re: Can't get owned relationship working with JDO and subclass

2009-11-22 Thread Rick Horowitz
, 2009 at 10:33 AM, Rick Horowitz wrote: > Well it partly worked, but enough to get by for development purposes > for awhile, so that's pretty good. I removed datanucleus- > appengine-1.0.3.jar from the Eclipse plugin and replaced it with > appengine-1.0.4.RC1.jar. First, I tr

[google-appengine] How can I generate unique id for new object in entity group?

2011-02-05 Thread Rick Horowitz
I have an object model with a Person class that references several role classes, e.g. Customer, Partner, Administrator. Since GAE does not support polymorphism, I am trying to implement the relationship as an ArrayList of role keys in Person with a Person key in each of the role classes. It loo

[google-appengine] Storing collection of enum bug?

2011-02-06 Thread Rick Horowitz
I'm using JDO with app engine. I have an class, Person, that contains two collections: private ArrayList parentKeys; private ArrayList roleTypes; // RoleType is an enum, defined as a public enum in its own file I am using transactions. When I add a RoleType value to roleTypes prior to calling