• Post Reply Bookmark Topic Watch Topic
  • New Topic

Compound Primary key

 
Peter Warde
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm wondering about a compound primary key. In SQL I often build a primary key using 2 table column one of which is the foreign key of a relation with another table. In EJB this is not a placed value but a reference to component interface of another bean as defined in the DD under r <relationships> tag and a CMR method in the entity bean.

I know ro build a compound primary key I must use CMP fields of the bean, but can I use a CMR field ? If not how do I do this?

Thanks
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!