Win a copy of The Business Blockchain this week in the Cloud forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Segment vs Flight Search

 
Murat Balkan
Ranch Hand
Posts: 127
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
In some posts I have seen that people searches for segments in order to create an itinerary. But in prepare itinerary usecase, it says that user searches for flights. To which one I have to draw a dependency from my fa�ade? I think price belongs to a segment so there has to be two dependency lines from fa�ade to flight and segment. The confusing thing is, since segment is directly related to a flight, maybe one dependency line will be fine.
Can you help?
Thank you,
Murat
 
suekar meredilko
Ranch Hand
Posts: 153
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Murat Balkan:
I think price belongs to a segment so there has to be two dependency lines from fa�ade to flight and segment.


I read in part-1 that transitive dependency does not apply i.e. A->B->C does not mean A->C.

As per the usecase and your design, I think the right way is Facade will have dependency relation with Flight and Flight will have an aggregation association (OWN) the segment.
 
Cleuton Sampaio
Ranch Hand
Posts: 181
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey, I think that a segment IS a flight booked by a client.
 
suekar meredilko
Ranch Hand
Posts: 153
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sorry iternary and segment ... is association.
a flight is a segment, you are right.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic