Bugs item #1064073, was opened at 2004-11-10 21:30
Message generated for change (Settings changed) 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: Open
Resolution: None
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.

----------------------------------------------------------------------

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

Reply via email to