Java Reflection - get association

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”?
1 answers

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.