Quote:
If <key> and <index> is not supported
It is supported, just not with duplicate columns, you can not use the same column for both the key and the index.
Quote:
how should I represent the relationship between Customer and Recipient?? Recipient has a foreign key to customer (RC_C_ID) and the primary key is a composite key (RC_D_ID, RC_C_ID) and I want to use MAP instead of SET. How should I map customer and recipient??
You should be able to use just
RC_D_ID as the index.
If I understand correctly, each customer has a Map of recipients in which case the <key> tag on RC_C_ID would narrow down the recipients to just the ones with that customer ID and then you can index them by their ID which I am guessing is the RC_D_ID?
Let me know if that is not what you are trying to do.