title: JPA how to make composite Foreign Key part of composite Primary Key
body: <p>I have following tables how can i map them to JPA entities:</p>
  <pre><code>TABLE Event {
      EventID
      SourceID
      ....Other event fields
      PK (EventID, SourceID)
  }
  
  TABLE MEETING {
      MeetingID
      EventID
      SourceID
      ...Other meeting fields
      PK(MeetingID,EventID, SourceID)
      FK(EventID, SourceID) //FK with Event table
  }
  </code></pre>
  <p>The Event table has one-to-many relationship with Meeting table. How can i map this bi-directional relationship in JPA?</p>