我正在使用JDO annotation dependent =“true”删除我拥有的子类,如下所示:
@Persistent(mappedBy = "parent")
@Order(column="PARENT_CHILD_IDX")
@Element( dependent="true" )
private ArrayList< Child> children = new ArrayList< Child >();
我是否需要为其他非自定义数据类型(如Long,String,Link,Blob和Text)执行此操作?枚举?
@Persistent( defaultFetchGroup="true", dependant="true" )
private Text veryLongString;
答案 0 :(得分:0)
我在appengine-java组中提出了类似的问题,答案是:
If you delete an entity, Text and Blob properties in that entity will be deleted as well.