1. An Itinerary contains at most 1 departure flight and the return flight(if two way)
2. An Itinerary contains many departure flights and the return flights(if two way), in this case the Itinerary is like a shopping cart. In my design I didn't use this idea... things are getting difficult because of this. Need help please. I really need to see the initial Domain Model again...
Joined: Nov 07, 2006
my interpretation of the BD is the following:
Itinerary would AMS-NY return
Segments: AMS-Rome Rome-NY NY-Rome Rome-Ams
Each segment is covered by one flight: AMS-Rome KL101 Rome-NY BA7 NY-Rome BA8 Rome-Ams KL103
So I model: relationship itinerary-segment as 1:n relationship segment-flight as 1:1