Query associated with target instead of source not working
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2007 08:24 AM
Hi everybody.
I've got an application where I query associated nodes in the following way:
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?
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?
Labels:
- Labels:
-
Archive
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2007 05:26 AM
Do I need to change something on my model?
<association name="my:ClausulaPliegoC">
<title>Clausulas en Pliego</title>
<target>
<class>my:ClausulaenPliego</class>
<mandatory>false</mandatory>
<many>true</many>
</target>
</association>
Do I have to add any tag so I can navigate back from the target node to the source node?
I'll be very grateful for any hints provided on this.
<association name="my:ClausulaPliegoC">
<title>Clausulas en Pliego</title>
<target>
<class>my:ClausulaenPliego</class>
<mandatory>false</mandatory>
<many>true</many>
</target>
</association>
Do I have to add any tag so I can navigate back from the target node to the source node?
I'll be very grateful for any hints provided on this.
