Showing results for 
Search instead for 
Did you mean: 

EJB bi-directional, one-to-many relationships

Former Member
0 Kudos

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)

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="">this document</a> -> Creating Bidirectional Relationships.

Hope that helps!


Answers (0)