0
votes

I am trying to understand the Alfresco associations. I have understood the concept behind peer association as well as parent child association with examples.

I am referring their official docs example (peer association) : http://docs.alfresco.com/5.2/tasks/dev-extensions-content-models-tutorials-add-association.html

Screenshot :

enter image description here

Question: I am not following how mandatory and many parameters can be used within source? Most of examples, I have seen, those are set to same as target. Can anybody explain the use-case where I can set many is true in source and false in target with real use-case/example?

2

2 Answers

1
votes

There are many scenarios where many is false in source and true in target.You can check existing alfresco content model for same.Below is link for same.

https://github.com/Alfresco/community-edition-old/blob/master/projects/repository/config/alfresco/model/contentModel.xml

Apart from that regarding association , you ccan find more details on below link.

https://docs.alfresco.com/4.0/concepts/metadata-model-assoc.html

1
votes

Suppose you have a Contract and you want to associate it with a Customer. This is a Many-to-One relationship. A Contract is associated with only one Customer (target, many=false) but a Customer can have many Contracts (source, many=true).