Hi Venkat, I don´t know if I´m understanding correctly your problem, but I´m going to expose how I used the persisten classes in my last project.
I mapped the table to the persisten class. I chose 2 keys: Business key (like empno, or vbeln) and technical key (I used a guid field, just like CRM). To define a foreign key relation, just put the guid as attribute of the transparent table and It worked in the mapping of the other persistent class....
Original class:
MANDT | MANDT | CLNT | 3 | 0 | Mandante | |||
EXP_GUID | ZGC_EXP_GUID | RAW | 16 | 0 | ZGC: Expediente - Id Interno |
Related class:
MANDT | MANDT | CLNT | 3 | 0 | Mandante | |||
ACC_GUID | ZGC_ACC_GUID | RAW | 16 | 0 | ZGC: GUID de una acción | |||
EXP_GUID | ZGC_EXP_GUID | RAW | 16 |
It worked for me... :/