I have following tables how can i map them to JPA entities:
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
}
The Event table has one-to-many relationship with Meeting table. How can i map this bi-directional relationship in JPA?