【问题标题】:Queries in Google App Engine using JDOQL使用 JDOQL 在 Google App Engine 中进行查询
【发布时间】:2011-07-16 13:06:11
【问题描述】:

我在使用面向对象数据库而不是传统关系数据库时遇到问题。 我使用 JDO for Persistance 和 Google App Engine 作为托管平台。 我怎样才能正确地为我的类建模以支持关系。 在 SQL 中,我可以进行 Join 查询,但 Google 的 BigTable 数据库不支持它。

例如,这种方法是否正确?

Class Parent 
{   
    @Persistent(mappedBy="parent")
    List<Child> children;
}

Class Child
{
   @Persistent
   Parent parent;
}

获取 Parent 的所有 Child 对象的 JDOQL 查询应该是什么? 我将非常感谢您提供一些建议。谢谢。

【问题讨论】:

标签: google-app-engine gwt persistence jdo gql


【解决方案1】:

GAE 支持合并连接。您可以观看 Brett Slatkin 的 IO 2009 演讲“在 App Engine 上构建可扩展的复杂应用”

http://www.google.com/events/io/2009/sessions/BuildingScalableComplexApps.html

【讨论】:

    猜你喜欢
    • 2011-08-17
    • 1970-01-01
    • 1970-01-01
    • 2011-07-20
    • 1970-01-01
    • 2011-07-24
    • 2018-01-06
    • 1970-01-01
    • 2011-01-15
    相关资源
    最近更新 更多