On Thu, Oct 1, 2009 at 12:39 PM, Laird Nelson <[email protected]> wrote:

> Here they are, simplified.  I apologize for the length of this email.
>

And the contents of the various test cases that fail.  "dao" is a simple EJB
that wraps an entity manager.  I'm running the whole thing in OpenEJB.

final X x = new X();
final Y y = new Y(x);
x.put("Test", y);
this.dao.persist(x); // XXX fails with error noted

// Another test case:

X x = new X();
x = this.dao.merge(x);
this.dao.flush(); // OK

Y y = new Y(x);
y = this.dao.merge(y);
this.dao.flush(); // OK

x.put("Test", y);
x = this.dao.merge(x);
this.dao.flush(); // XXX fails

Hope that helps.

Best,
Laird

-- 
View this message in context: 
http://n2.nabble.com/Cascade-and-persist-issues-tp3749443p3750477.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.

Reply via email to