Difference between one-to-many and many-to-one relationship

后端 未结 11 496
心在旅途
心在旅途 2020-12-12 10:52

What is the real difference between one-to-many and many-to-one relationship? It is only reversed, kind of?

I can\'t find any \'good-and-easy-to-understand\' tutoria

11条回答
  •  自闭症患者
    2020-12-12 11:45

    one-to-many has parent class contains n number of childrens so it is a collection mapping.

    many-to-one has n number of childrens contains one parent so it is a object mapping

提交回复
热议问题