Skip to content

Commit 52c7e2b

Browse files
authored
Merge pull request #9735 from emirmx/patch-25
Update query-over.md
2 parents 24803b0 + c511820 commit 52c7e2b

File tree

1 file changed

+2
-2
lines changed
  • content/en/docs/refguide/modeling/domain-model/associations

1 file changed

+2
-2
lines changed

content/en/docs/refguide/modeling/domain-model/associations/query-over.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,9 @@ Here is an example inheritance:
104104

105105
{{< figure src="/attachments/refguide/modeling/domain-model/associations/query-over/limitation.png" class="no-border" >}}
106106

107-
In this example, a list of **Specializations** cannot be retrieved when using a standard by-association retrieve in a microflow if the input is the specialization.
107+
In this example, if a standard by-association retrieve in a microflow is used starting from a `Specialization` this will return the `Specialization` that the starting point `Specialization` points to and not the list of `Generalization` which are associated via the `Generalization_Specialization` association.
108108

109-
However, there is a workaround for this limitation: The list of Specializations can be retrieved with a Java action using the Java API. This Java action needs two parameters: the **Specialization** and a Boolean **Reverse** via this code snippet:
109+
The list of `Generalization`'s that points to `Specialization` can be retrieved with a Java action using the [Runtime API](https://apidocs.rnd.mendix.com/11/runtime/com/mendix/core/Core.html#retrieveByPath(com.mendix.systemwideinterfaces.core.IContext,com.mendix.systemwideinterfaces.core.IMendixObject,java.lang.String,boolean)), as shown in this Java action which takes the `Specialization` object and a Boolean `Reverse` to indicate that the object instance is the child of the path of a self association:
110110

111111
```java
112112
public class RetrieveAsAssociatedWithB extends CustomJavaAction<java.util.List<IMendixObject>>

0 commit comments

Comments
 (0)