Table from many to many direct relation

I have two entity complex and requirement with direct many to many relationship. How can i show combined records in table?

Collection and keyvalue collection datasources gives metaclass error for sql as entity for link table is not defined.

select f.complex_id, e.requirement from sheelcompliance_User_Legal_Register e, sheelcompliance_user_legal_register_complex_link f where e.id = f.user_legal_register_id

Regards

Umesh

The issue has been solved. The requirement was met by master detail collections.

regRDS

UMESH