-
Bug
-
Resolution: Done
-
Major
-
JBossAS-3.2.6 Final
-
None
SourceForge Submitter: ioparra .
JB3_2_6
Win2k
Oracle9i
JDK1.4
Attached is patch to the testsuite that modifies:
manyToManyBidirectional/ABTest.java- the actual use
case
RelationshipUnitTestCase- modified to only run ABTest
ejb-jar.xml/jbosscmp-jdbc.xml- modified to work with
cmp2(findAll is not defined).
Also in the zip is a modified standardjboss.xml that
forces the default CMP container to be cmp2.x.
The use case is simple.
A<->B
Assumming there is 1 A to 1 B(as starting point). If you
run this type of code.
Collection coll = A.getB();
Collection newset = new HashSet();
newset.addAll(coll);
newset.add(newBEJB());
A.setB(newset);
The result should be 1 A to 2 B.
The SQL result is 1 A to 0 B. The appserver (for the
Attached are jars and sql output.