On Tue, Jan 24, 2012 at 4:21 PM, John Goche <[email protected]> wrote: >> >> The main reason I ask is that loading two entities is about twice as >> expensive as loading one twice the size. > > Tough. I cannot sacrifice code readability here.
This is an intriguing attitude. You have arrived with a preconceived notion of exactly what you want your Java data structure to look like and you are now trying to force GAE into that mold. If you stay this path, you will very likely end up abandoning appengine in frustration. At best, you will produce software that works poorly. You have a long learning curve ahead of you, both in terms of learning how the datastore works and learning how to create a data model that is both performant and maintainable. I have two pieces of advice: * Read the "Storing Data" section of the GAE manual *completely*. The nature of keys and ancestry is only one of many pieces of knowledge you must master to develop applications here. Even though it looks vaguely like one on the surface, this is not an RDBMS and your learned instincts are likely wrong. Do not believe you can "just understand JDO". * When you ask for help, try be somewhat more general describing what you want to do. You're asking about how to specifically arrange primary keys in Java classes when it may be the case that what you want to do is embed one class in the other. There is not one canonical way to model entities on GAE, so if you want help, start from the perspective of "this is roughly what I'm trying to do... is it the right way?" As to your specific problem, I think you'll get a lot more help if you rephrase the question. Everyone here is just taking guesses at what you're trying to ask. Suerte, Jeff -- 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
