title: Add One to Many relationship in junction table in Hibernate
body: <p>I have two table with Many to Many relationship</p>
  
  <pre><code>Table 1           Table 2          Junction Table
  ---Game---      ---Player---      ---GamePlayer---
  gameID(PK)      playerID(PK)      gameID
  gameDetails     playerDetails     playerID 
                                    PK(gameID,playerID)
  </code></pre>
  
  <p>I have one more table "Setting"</p>
  
  <pre><code>Table 
  ---Setting---
  settingID
  settingName
  settingValue
  FK(gameID,PlayerID)
  </code></pre>
  
  <p>which have relation with Game and Player in way that </p>
  
  <ul>
  <li>A player can have number of settings for each game. </li>
  </ul>
  
  <p>I dont know how to implement this in hibernate.</p>
  
  <p>Apologies if this is a simple fix. I am new to the hibernate. Some help or better solution would be greatly appreciated.</p>