次のようなドメインがあります。
class Author {
String id
static hasMany = [accounts: Account]
static belongsTo = Account
static mapping = {
accounts joinTable: [name: "SOMETABLE", key: 'SOMEFIELD'],
ignoreNotFound: true
}
static constraints = {}
}
レコードが見つからない場合、次のエラーが発生します。ignoreNotFound を試しましたが、機能しませんでした。
error message: accounts=org.hibernate.ObjectNotFoundException:
No row with the given identifier exists:
[com.myapplication.Account#123465489785]
データベースに挿入するアクセス権がない結合2レコードを選択しようとすると発生します。回避策はありますか?