cancel
Showing results for 
Search instead for 
Did you mean: 

EJB bi-directional, one-to-many relationships

Former Member
0 Kudos
194

Is it possible to create bi-directional relationships between CMPs in Netweaver? When creating a one-to-many relationship there seems to be no way to specify a CMR field at both ends of the relationship, although when viewing the created relationships in persistence.xml editor there is a read-only data entry field called 'Cmr field' with the value 'not specified' at the other end of the relationship, implying that bidirectional relationships are possible.

Do I need to use a many-to-many type relationship to use bi-directional relationships?

Accepted Solutions (1)

Accepted Solutions (1)

Vlado
Advisor
Advisor
0 Kudos

Hi Steve,

The problem is not with the one-to-many or many-to-many type. The Developer Studio for NetWeaver 04 does not support the creation of bidirectional relationships. Still, there is a workaround. Please have a look at <a href="http://help.sap.com/saphelp_nw04/helpdata/en/76/c6ba3eb645dc61e10000000a114084/frameset.htm">this document</a> -> Creating Bidirectional Relationships.

Hope that helps!

Vladimir

Answers (0)