Bugs item #1064073, was opened at 2004-11-10 21:30 Message generated for change (Comment added) made by loubyansky You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=376685&aid=1064073&group_id=22866
Category: JBossCMP Group: v3.2 >Status: Closed >Resolution: Fixed Priority: 5 Submitted By: Ivan Parra (ioparra) Assigned to: Alexey Loubyansky (loubyansky) Summary: CMP2.x jdbc2 handles CMR (M:N) collection incorrectly. Initial Comment: 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. ---------------------------------------------------------------------- >Comment By: Alexey Loubyansky (loubyansky) Date: 2004-11-11 17:41 Message: Logged In: YES user_id=543482 Fixed in 3.2.7RC1, 4.0.1RC1 and HEAD. Thanks. Diff against Branch_3_2: Index: JDBCCMRFieldBridge2.java =================================================================== RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/ejb/plugins/cmp/jdbc2/bridge/JDBCCMRFieldBridge2.java,v retrieving revision 1.1.2.17 diff -r1.1.2.17 JDBCCMRFieldBridge2.java 876a877 > loader.addRelatedId(ctx, relatedId); ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=376685&aid=1064073&group_id=22866 ------------------------------------------------------- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click _______________________________________________ JBoss-Development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development