How to model a Many to many-relationship in code?
Why are you talking about tables? Are you creating an object model or a database model? For an object model, there’s no reason a Dog can’t have a List<Owner> and an owner have a List<Dog>. Only if you have attributes on the relationship do you need an intermediate class (what UML calls an Association Class). … Read more