This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Modeling 1...1*

 
Ram Ruk
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?

Thanks
 
Ara Tatous
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic