[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [eclipselink-users] During synchronization a new object was found through a relationship that was not marked cascade PERSIST:
|
You are correct (the key here is the lack of a cascade to a related object). Is
your failing example that simple?
-Tom
Michael Simons wrote:
Hello Tom,
but isn't that what CascadeType.PERSIST is mentioned to do?
In the example given: If the instance of B referenced in A was marked cascade=CascadeType.PERSIST in A. Then I expect that this instance of B is persisted by EL, without a extra call of em.persist().
Am I wrong?
-Michael
-----Ursprüngliche Nachricht-----
Von: eclipselink-users-bounces@xxxxxxxxxxx [mailto:eclipselink-users-bounces@xxxxxxxxxxx] Im Auftrag von Tom Ware
Gesendet: Mittwoch, 7. September 2011 17:11
An: EclipseLink User Discussions
Betreff: Re: [eclipselink-users] During synchronization a new object was found through a relationship that was not marked cascade PERSIST:
This exception indicates that there is a non-managed object related to an object
that is managed.
e.g. You have a relationship between A and B without cascade persist. You
create an A, related it to a B and then persist the A without persisting the B.
-Tom
Michael Simons wrote:
Hello,
I've got the exception mentioned in the subject although the relation is
marked cascade PERSIST.
Any ideas what might cause this?
Is this a known bug?
We're using EL 2.1.3
Kind Regards,
Michael Simons
------------------------------------------------------------------------
_______________________________________________
eclipselink-users mailing list
eclipselink-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/eclipselink-users
_______________________________________________
eclipselink-users mailing list
eclipselink-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/eclipselink-users
_______________________________________________
eclipselink-users mailing list
eclipselink-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/eclipselink-users