开发者

which types require using JDO dependent="true" for cascading deletes?

I'm using the JDO an开发者_高级运维notation dependent="true" to delete my owned child classes like this:

@Persistent(mappedBy = "parent")
@Order(column="PARENT_CHILD_IDX")
@Element( dependent="true" )    
private ArrayList< Child> children = new ArrayList< Child >();

Do I need to do this for other non-custom data types like Long, String, Link, Blob, and Text? enums?

    @Persistent( defaultFetchGroup="true", dependant="true" )
    private Text veryLongString;


I asked a similar question on the appengine-java group and the response is:

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

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜