• 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?
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!