AnsweredAssumed Answered

Query associated with target instead of source not working

Question asked by isanalon on Sep 14, 2007
Latest reply on Sep 18, 2007 by isanalon
Hi everybody.
I've got an application where I query associated nodes in the following way:


RepositoryServiceSoapBindingStub repositoryService = WebServiceFactory.getRepositoryService();         
       Association[] assoc = {new Association("my:ClausulaPliegoC", AssociationDirectionEnum.source)};

try {
queryAssociated = repositoryService.queryAssociated(node, assoc);
ResultSet associatedResultSet = queryAssociated.getResultSet();
ResultSetRow[] rows = associatedResultSet.getRows();


Everything works fine and I get results (rows != null)
The problem appears when I try to query the other way around, using
AssociationDirectionEnum.target instead of AssociationDirectionEnum.source

Using that, I get no results (rows==null).

If my association is A->B, I was getting correctly B from A, but now I want to get A from B. How can I do it if this code is failing?

Outcomes