How is the “Owning Side” of this many-to-many relationship determined?

后端 未结 3 1746
天命终不由人
天命终不由人 2021-02-07 23:54

I\'m trying to get a firm grasp on the concept of Owning-side. Couldn\'t really get a clear picture from any question i found here. Basically I\'m going through the Java EE JPA

3条回答
  •  花落未央
    2021-02-08 00:36

    According to your question, you use ManyToMany relationship bidirectional.Here is my answer,

    For question 1

    • According to the database design,it is determined TEAM is ownerside.

    For question 2

    • There is no difference if PLAYER was made the owning side instead, in this scenario.See this documentation.

    For question 3

    1. It depend on your database design.

提交回复
热议问题