开发者

Using JDO with HRD on Google App Engine

开发者 https://www.devze.com 2023-03-29 14:21 出处:网络
To get consistent queries with HRD, we are told to use ancestor queries. i am using JDO, however i cannot find an example of an ancestor query using JDO Query.

To get consistent queries with HRD, we are told to use ancestor queries.

i am using JDO, however i cannot find an example of an ancestor query using JDO Query.

can someone tell me开发者_如何转开发 if its possible, and if so can you point me to an example?

thank you.


No, there's no way to do ancestor queries in JDO, only in the low-level API. If you have a choice of database frameworks, though, I would strongly recommend switching to Objectify.

If you must use JDO, you could add a 'parent' property to each child entity, which would allow you to query on the immediate parent of an entity.

0

精彩评论

暂无评论...
验证码 换一张
取 消