1 - In the SCEA Study Guide by M. Cade and S. Roberts they include in the class diagram some stateless ejb's and some new classes.
My doubt: some of the business class could be implemented by entity ejb's... Must I include the <<EntityBean>> stereotype on the diagram, for example <<EntityBean>>Customer???
>> I think that shouldnt be a problem.
2 - For the already SCEA: I'm a bit confused by the relationship 1-1 between Segment and Flight? Can you give some tips?
>> Consider Segment as a leg of journey which has a leg no, connection indicator and a flight no + other stuff
So your PHL HNL could have 2 segments
Segment 1
leg no 00
connection indictor Y
flight no Flight->flight no
dest LAX
gateway PHL
Segment 2
leg no 01
connection indictor N
flight no Flight->flight no
dest HNL
gateway LAX
So the smallest denomination is a segment which has exactly one flight associated. Both the segments together will form 1 option.
3 - Can I add some entity like CreditCard ???
>>Sure
4 - What about represent two generalizations of Seat named CoachSeat and FirstClassSeat??? And about a generalization of Itinerary named PaidItinerary???
>> Not needed i think.