Relationships

永続化に関して勉強しようとドキュメントを読んでみた。
特に関連に関しては、List型のメンバに対してPersistentアノテーションを付与するとone-to-manyになる。hibernateあたりを利用したことがある人であればすんなり理解できると思う。
しかしながら、

App Engine does not support join queries: you cannot query a parent entity using an attribute of a child entity.

とあり、結合がサポートされていない。。ただし、

You can query a property of an embedded class, because embedded classes store properties on the parent entity.

Embedded Classなるものの値を使ったクエリーは実行できるとある。
その組み込みクラスだが、
http://code.google.com/intl/en/appengine/docs/java/datastore/dataclasses.html#Embedded_Classes
を読むと、これってせいぜいone-to-oneの代替にしかならないよね。。


うーん、これ、ちょっときつい。

追記(2009.4.27)

ひがさんからコメントをいただいた。
確かにRDBMSのように考えていた。BigTableについて調べてみた中で以下のサイトの説明がよかった。
http://teahut.sakura.ne.jp/b/2008-04-21-1.html