I am trying to configure a CDT to use the JPA ManyToMany Annotation. I have two

I am trying to configure a CDT to use the JPA ManyToMany Annotation. I have two objects A & B. Many A's can have many B's and many B's can have many A's. A has a primary key of id which is AutoGenerated, and a name field. B is setup the same way as A. In A I add the following element:                               
<xsd:element name="bid" type="B" nillable="true" minOccurs="0" maxOccurs="unbounded">
<xsd:annotation> <xsd:appinfo source="appian.jpa">
@ManyToMany
@JoinTable(name="a_b",
joinColumns=@JoinColumn(name="aid", referencedColumnName="id"),
inverseJoinColumns=@JoinColumn(name="bid",referencedColumnName="id")          
)                                                                                                                                                                                              
</xsd:appinfo></xsd:annotation>          </xsd:element>

I import the CDT and the tables for A & B generate correctly. My problem is that when I create a new A and select B from a dropdown list to store in the a_b JoinTable my B name field is updated to null. What do I need to do to only have the JoinTable records updated and not the actual reco...

OriginalPostID-59912

OriginalPostID-59912

  Discussion posts and replies are publicly visible