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?