gpt4 book ai didi

java - Google 表示 JDO 不会从 Datastore 进行级联删除。你是怎么做到的?

转载 作者:行者123 更新时间:2023-11-29 03:55:41 25 4
gpt4 key购买 nike

谷歌说:

Note: The JDO implementation does the work to delete dependent child objects, not the datastore. If you delete a parent entity using the low-level API or the Admin Console, the related child objects will not be deleted.

那么我该如何删除一个子实体为 ArrayList 的实体呢???

这不应该是一个基本功能 - 从父实体中删除依赖的子实体吗?

最佳答案

并不是说 JDO 不做级联依赖子级。事实上,它是说它确实会执行这些操作,但执行这些操作的是 JDO 中的代码。因此,如果您直接访问数据库(SQL 或管理工具),则不会删除相关子项。

关于java - Google 表示 JDO 不会从 Datastore 进行级联删除。你是怎么做到的?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6543664/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com