Add Multiplicity

Our domain model is almost complete, with just a couple of final touches to go. We’ve added our entities, linked them via relationships, and described the way in which they are related. However, one thing we’re missing is how many of one type of entity relates to another. This is called multiplicity, and it sounds complicated, but you’ll soon see it’s not. You’ve likely encountered using language like this before, especially if you’ve worked with relational databases.

You may have noticed that when we write our entities, they’re always written in the singular form. This is again a nod to the fact that our code, which will use singular names in class names, should reflect our domain model. Furthermore, it might be possible, such ...

Get Creating Software with Modern Diagramming Techniques now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.