Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipselink-users] Cascade.PERSIST marked List is not getting persited when Parent Object is persisted

I think this was something fixed in EclipseLink 1.1, could you try this
release.

The issue was that when you add to a lazy collection the collection records
the add, but avoid fetching the collection.  However the persist() was not
traversing the collection because it thought it was not fetched, but needs
to traverse the added elements.  If you instantiate the collection first
(i.e. send it size() or make it EAGER, then it would work).  You could also
call persist on the object that was added, instead of the Customer.



t3_chris wrote:
> 
> Hello James!
> 
> I've just reproduced the thing mentioned in a new clean project. The bug
> keeps occuring also in the simple demo project. 
> 
> I filed an issue which includes the demo project.
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=270714
> 
> Best Regards,
> christian
> 


-----
---
http://wiki.eclipse.org/User:James.sutherland.oracle.com James Sutherland 
http://www.eclipse.org/eclipselink/
 EclipseLink ,  http://www.oracle.com/technology/products/ias/toplink/
TopLink 
Wiki:  http://wiki.eclipse.org/EclipseLink EclipseLink , 
http://wiki.oracle.com/page/TopLink TopLink 
Forums:  http://forums.oracle.com/forums/forum.jspa?forumID=48 TopLink , 
http://www.nabble.com/EclipseLink-f26430.html EclipseLink 
Book:  http://en.wikibooks.org/wiki/Java_Persistence Java Persistence 
-- 
View this message in context: http://www.nabble.com/Cascade.PERSIST-marked-List-is-not-getting-persited-when-Parent-Object-is-persisted-tp22717289p22827161.html
Sent from the EclipseLink - Users mailing list archive at Nabble.com.



Back to the top