I hope I am not voilating any rules in the forum. If yes, Please delete this message.
I agree that Flight and Segment have one-to-one relationship as per BDM. But 1 flight can used for 2 segments.
Example: The same flight can serve 2 segments:
1. IAD to ORD Segment
2. ORD to LAX Segment (Direct Flight with one stop)
So a segment will have Departure City and Destination City but not flight.
So, ItineraryVO will have something like TripVO and TripVO will have multiple SegmentVOs and one SegmentVO will have one FlightVO. Please let me know if this is not correct.
But my question is, when the user searches for flights, how do you "name" 1 trip containing multiple segments? This is one single unit in search results and cannot be seperated. The User will have to choose one from multiple trips in search results.(May be 2 for round trip).