on 05-10-2005 5:18 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.