cancel
Showing results for 
Search instead for 
Did you mean: 

EJB - CMP -- How to set bidirectional relations in NW Studio 2.0.9

Former Member
0 Kudos

Dear all,

We are using NetWeaver Developer Studio(Java) for our development purpose.

In J2EE , EJB , How can i create a bidirectional relation?.

I have created a relation , ( giving proper source and target ejb refereences) , which is unidirectional, how can i make that bidirectional.?

Please help mw with proper helps regarding that .

Help provided by the Studio is not enough to make bidirectional relations , as its making some problem..

my scenario i ,,

I have ..

******************

two CMP beans..

******************

1)PlayerEJB

2)TeamEJB

******************

I have created a relation (one to many) relation from (1) to (2).

relation name-> rel_player_team

************

at that time ,

in the source ejb

the CMR field generated is,

1)cmrField__player_team

and the corresponding get and set methods created are ..

************

getcmrField__player_team

setcmrField__player_team

which have return type(for get) and parameter (for set )

as Collection ..

How can i make that bidirectional relation??

With regards

Kishor G

Accepted Solutions (0)

Answers (1)

Answers (1)

viliana
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

Did you follow this link when you tried to create the bidirectional relationship: http://help.sap.com/saphelp_nw04/helpdata/en/76/c6ba3eb645dc61e10000000a114084/frameset.htm

Note that there are some limitations when developing bidirectional relationships with the IDE, therefore this link describes a kind of workaround.

Best regards,

Viliana