This content has been marked as final.
Show 1 reply
-
1. Re: Session bean method - read-only transaction
xmedeko Sep 21, 2010 3:15 AM (in response to xmedeko)Well, after a day of search and discussion with some people, I guess JPA 1.0 does not allow this directly. The TransactionAttributeType.NOT_SUPPORTED is not what I need. So, I just set direcly
HibernateHelper.getSession(this.em).setFlushMode(FlushMode.MANUAL)
and that's it.