私は次のような構造を持っています。製品はストアに埋め込まれています。レビューは製品に埋め込まれています。
1- Store
2-Products[]-->
3-Reviews[]
次のコードで確認する新しいアイテムを追加しようとしています。エラーは発生しませんが、追加されません。
Query q1=ds.createQuery(Product.class).filter("Code", code);
if(q1.countAll()==1)
{
ops = ds.createUpdateOperations(Product.class).add("Reviews", review);
ds.update(q1, ops);
}