Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
子が埋め込まれたオブジェクトがあります。
class Parent { Child child static embedded ['child'] } class Child { String name }
そして、executeQueryを使用したいと思います(実際の場合、Whereクエリまたはcreate基準を使用できないため)。基準に切り替えずにそれを行うにはどうすればよいですか?
試す:
Parent.executeQuery("FROM Parent parent WHERE parent.child.name = 'FOO'")
編集:
気付いたばかりですが、埋め込みオブジェクトの静的宣言を追加する必要があります。
static embedded ['child']
多分それはトリックをするでしょう...