• Post Reply Bookmark Topic Watch Topic
  • New Topic

Composite primary key  RSS feed

 
Aravind Ravi
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In my data model, for a table i am having a foreign key as part of my primary key. How do I define a composite primary key for such an entity bean?
Thanks in advance for any help provided.
Aravind Ravi
SCJP, SBCD
 
Bish Ach
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
this may be useful to u......
http://www.coderanch.com/t/70282/Websphere/we-hv-composite-primary-key
 
Bish Ach
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here is the implementation
http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/BMP5.html
 
Aravind Ravi
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the links, but I actually need details regarding having the foreign key relationship as part of primary key...
Aravind Ravi
SCJP, SBCD
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!