哪些类型需要使用JDO dependent =“true”进行级联删除?

时间:2010-08-13 20:28:52

标签: google-cloud-datastore jdo

我正在使用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;

1 个答案:

答案 0 :(得分:0)

我在appengine-java组中提出了类似的问题,答案是:

 If you delete an entity, Text and Blob properties in that entity will be deleted as well.