Many-to-many relationship in oop

后端 未结 7 765
北恋
北恋 2021-02-04 15:53

what is best way to model many-to-many relationship?

lets say we have a two classes , Team and Player

  • any given P
7条回答
  •  清歌不尽
    2021-02-04 16:20

    Split the many-to-many relationship into two one-to-many's. Makes everything a lot more simple.

提交回复
热议问题