Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-1196

CMP2.x jdbc2 handles CMR (M:N) collection incorrectly.

XMLWordPrintable

      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.

              olubyans@redhat.com Alexey Loubyansky
              sourceforge-user SourceForge legacy user (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: