• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Composite Foreign Key mapping

 
Z Sugiarto
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm using JPA, which translates to mapping via annotations. I need to figure out how to map a series of foreign keys as composite ID. No I'm not talking about composite PRIMARY keys, that is easily doable with @EmbeddedID, I'm talking about entities whos ID is made up of composite foreign keys.

I'm not very hopeful here, but if you DO know something about it. Pls post a reply!
 
Danilo Dadonas
Ranch Hand
Posts: 59
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Post the DDL of the tables?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic