This content has been marked as final.
Show 3 replies
-
1. Re: ManyToMany with EntityManager in flush mode manual
torsty May 29, 2007 6:47 AM (in response to torsty)forgot to say: when I used fluh mode manual I flushed before persisting.
-
2. Re: ManyToMany with EntityManager in flush mode manual
fernando_jmt May 29, 2007 9:39 AM (in response to torsty)"torsty" wrote:
forgot to say: when I used fluh mode manual I flushed before persisting.
Don't you think this is the cause of your problem?
You should call em.flush() explicitly after all interactions with EM are performed. I have a same scenario with User->Role (ManyToMany) relationship using SMPC with FlushModeType=MANUAL, and it is working well.
HTH. -
3. Re: ManyToMany with EntityManager in flush mode manual
torsty May 29, 2007 10:45 AM (in response to torsty)Hi fernando.
thanks a lot! It Works!
I missed to explicitly flush after persisting the job entity (really embarrassing - sorry). So thanks, again!