Hi, how can I retrieve the association(s) between two entities in java? I know the module and the entities but X.getMendixObject().getReferences(getContext()); does just return a list of references, which do not contain the reference name (as shown in the domain model). Example: How do I get “Book_Publisher”?
asked
Erwin Filtz
2 answers
0
If you are using the generated proxy classes then a getter will have been generated for you to use. So from Book there should be getBook_Publisher method that will return the associated Publisher.
I hope this helps.
answered
Robert Price
0
If you want the association name, you can do it like this: