Identify the significance of using cascade=”insert” from the snippet below:
<item-descriptive name= “user”>
<property name= “favoriteArticles” data-type = “list” component-list-item-type = “articles” cascade
= “insert”>
</item-descriptive>
A.
An item of type articles is created once a new user is created.
B.
If a user is deleted, all itemsinarticles of that user are deleted.
C.
insert is ignored for properties that use the attribute component item-type.
D.
An article named favoriteArticles is created.
Explanation:
The cascade=”insert” attribute is ignored for properties that use component-itemtype.
Note: Cascade Insert
If a repository item has a property with the item-type attribute and the cascade=”insert” attribute
set, on item creation:
A new item of the type declared by the item-type attribute is also created.
The property is set to point to the other item created.
The cascade=”insert” attribute is typically used with cascade=”update” and cascade=”delete” so
management of this item is completely automatic. The item is created, added, updated, and
deleted along with the parent item.
The cascade=”insert” attribute is ignored for properties that use component-item-type.