I am trying to do the following:
I need a list for Destinations something like:
Destination 1
Company 1 : price from offer for the given Destination
Company 2 : price from offer for the given Destination
Company 3 : price from offer for the given Destination
Destination 2
Company 1 : price from offer for the given Destination
Company 2 : price from offer for the given Destination
Company 3 : price from offer for the given Destination
etc...
This is how I would create it but not sure if I am correct since haven't coded for two years:
Three DataObjects: Destination , Company and Offers.
Offer has one destination and has one offering company, but Company and Destination has many Offers.
Traversing based on Destination can't be done with 'Children' if I am correct.
I will be grateful for any suggestions!