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 Modeling 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 "Modeling 1...1*" Watch "Modeling 1...1*" New topic

Modeling 1...1*

Ram Ruk

Joined: Nov 19, 2006
Posts: 10
Hi, In the business domain model, the Itinerary has a 1...1* relationship with the Segment. How would you model such a relationship? 1..1 is a reference. 1..0* is a list. Not sure how 1...1* might be modeled. Any thoughts?

Ara Tatous

Joined: Jul 11, 2005
Posts: 16
You never encounter an emply list. Say in Java, ArrayList can exist but its size can be zero, one or more than one. right?
So, if you use a List it will cover all the cases.
subject: Modeling 1...1*
Similar Threads
unidirectional relationship
just passed 310-061 only 93%
Passed Part 2/3
Modeling a many-to-many relationship in java
SCEA part 2 : a question of domain model