This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes What value does segment add to BDM? (1-1) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "What value does segment add to BDM? (1-1)" Watch "What value does segment add to BDM? (1-1)" New topic
Author

What value does segment add to BDM? (1-1)

Morten Franorge
Ranch Hand

Joined: Jul 29, 2005
Posts: 137
I have travel agent in my family that tells me that a segment is much the same as a order line. The value that a segment adds is that it's associating the flight to the itinerary.

Order - Order line - Product
Itineray - Segment - Flight

This makes sense, except that the BDM states that a Flight can only be associated with one Segment. Which means once one "order" for a "product" has been made, no one else can order that "product".

If there is a 1 - 1 relationship, what value is the segment adding? I would have no problem understanding the (Segment *-1 Flight).


SCJP 1.4, SCBCD 1.3, SCBCD 5.0, SCEA J2EE, SCEA 5.0
Eric Kerry
Greenhorn

Joined: Jul 30, 2006
Posts: 4
I'm considering the following similarity. What do you think?

Order(1) ----- (1..*)Order line(*) -- (1)Product
Itinerary(1) - (1..*)Segment()(*) --- (1)Seat in Flight
Cleuton Sampaio
Ranch Hand

Joined: Nov 11, 2005
Posts: 181
IMO you are right to compare Order with Itinerary and Segment with OrderLine.

I have been working with flight reservation applications for a long time and they are very different from the assignment... For example, what happens if the Customer wants to buy two tickets? Have you considered that?

Cleuton (Brazil)


Cleuton Sampaio<br />Systems Architect<br />(SCEA,SCWCD,SCBCD,MCSE,MCSD)
Morten Franorge
Ranch Hand

Joined: Jul 29, 2005
Posts: 137
From my understanding of the reservation use case, it is possible to do a reservation for 2 seats. I have toyed with this idea:
Itiniary - Segment - Flight - Equipment - Seats
Where the selected seat(s) is a list in segment. While the list of seats in equipment is the number of available seat (and seating classes) for that flight (these seats will not be marked as "taken", they just state the "lay out" of the equipment)
Adrian Irons
Greenhorn

Joined: Aug 29, 2006
Posts: 14
I think you are right in all your assuptions and I think that is a must to modify the cardinality when you extends the BDOM (segment 0..* - 1 flight ). If you assume that the segment - flight cardinality is 1..1 then you are saying "I flight only exists when a segment exists", in other words "A product exists only when an orderline exists".
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: What value does segment add to BDM? (1-1)
 
Similar Threads
My view of FlyByNight's BDM (Itinerary, Segment and the like)
Flight - Segment another view
what do segment and leg mean?
Passed Part 2/3 with 100
segment and flight