[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
RE: [eclipselink-users] When would an INSERT be called before an EM is commited?
|
Tim,
Try forcing the flush-mode to commit:
em.setFlushMode(FlushModeType.COMMIT);
Doug
-----Original Message-----
From: Tim Hollosy [mailto:hollosyt@xxxxxxxxx]
Sent: Friday, May 02, 2008 9:29 AM
To: EclipseLink User Discussions
Subject: [eclipselink-users] When would an INSERT be called before an EM
is commited?
I'm using a Persist cascade type to handle adding child tables in a
ManyToOne relationship. Anyway, I am setting up my relationships, then
the next time I hit the EM to do a simple select, EclipseLink is
calling an INSERT on the ManyToOne table.
This is a big problem since I have autocommit on and don't want to
actually hit the database until the user specifically saves. I was
under the impression that nothing would hit the database until i call
commit on the entity manager.
--
./tch
_______________________________________________
eclipselink-users mailing list
eclipselink-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/eclipselink-users