AnsweredAssumed Answered

Association : Get parent node

Question asked by bch on Feb 11, 2008
Latest reply on Feb 12, 2008 by lvs
Hi,

An association between a type A and a type B is defined unilaterally on Alfresco, per example A->B. If I want to have an overall view on a content of type B, I want to see all contents of type A that reference my content of type B. Here, I have a problem.

First possibility :
Search by XPath or Lucene all contents of type A and check the association. This way is quite long.

Second possibility :
Create a bean to access by an SQL request to the parent. The disadvantage is to work directly on database is not clean.

This is my problem. If you have an opinion or ideas…

Thanks

Outcomes