I have 3 classes Itinerary,Leg and StopOver.
Itinerary has a collection(ArrayList) of Leg, Leg has a collection (ArrayList) of StopOver. Stopover has a property airlinecode. All classes nave appropriate getter's/setter's for member variables.
I want to set some commission amount if airlinecode for all stopovers from all legs for an Itinerary is from a particular airline.
Being a new drool user I am stuck.Hw could I achieve this.