I have entities Customer and Order (one to many) in domain model. I have Java function that is getting CustomerDTO , this CustomerDTO has list of OrderDTO. How can i return Customer Mendix Object that has orders nested in it from Java action?
If the Customer has the association to Order already in place, just return the Customer object. You can then use a retrieve in a microflow to get the orders from the Customer over that association.