[Grails] Criteria (クライテリア)で、子や親要素 (hasOne hasMany belongsTo) で検索する

以下のような、 ParentDomain を親ドメイン、 子をChildDomain の関係があるドメインで、

Criteria で検索する場合は、

のように、して検索できる。







コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です

This site uses Akismet to reduce spam. Learn how your comment data is processed.