This content has been marked as final.
Show 2 replies
-
1. Re: Seam 3 Persistence in autocommit
dxxvi Mar 31, 2011 1:16 AM (in response to idyoshin)Could you post your whole application source code somewhere? I guess it's possible because you said it's a simple application.
-
2. Re: Seam 3 Persistence in autocommit
idyoshin Mar 31, 2011 2:20 AM (in response to idyoshin)Well, I've moved forward really fast - and now it's not so small, as it was. However I found a solution:
public void setupEntityManager(@Observes SeamManagedPersistenceContextCreated event) { logger.info("setting flushmode MANUAL"); Session session = (Session) event.getEntityManager().getDelegate(); session.setFlushMode(FlushMode.MANUAL); }
Kind regards,
Ilya Dyoshin