cancel
Showing results for 
Search instead for 
Did you mean: 

Need help regarding associations

santosh
Champ in-the-making
Champ in-the-making
Hi,

What are the different types of associations in Alfresco?
I came across 2 types of associations - contains & children.
{http://www.alfresco.org/model/content/1.0}contains
{http://www.alfresco.org/model/content/1.0}children


I created a new folders using both the associations.
But could not get any difference between the 2 created folders.
Can someone point me towards the documentation regarding the same.

Thanks and regards,

Santosh Prabhu
1 REPLY 1

rivetlogic
Champ on-the-rise
Champ on-the-rise
There are two types of associations in Alfresco modeling, associations and child associations. From the wiki, child associations:
A child association can be thought of as an aggregate in UML terms. That is, the parent effectively owns the children, and as such, operations like delete etc will propagate through the children. Each child is given a name within the parent and it's possible to specify whether the names of children should be unique or not within the parent. Child associations are easily navigable using Alfresco's XPath and Lucene search languages.
And regular associations:
Unlike child associations, delete propagation does not take place and there is no notion of naming the associated node. Alfresco's search languages do not yet support joins across non-child associations.

Check out the wiki for examples.

–Sumer