Status: New
Owner: ----
New issue 597 by [email protected]: Persist Extension:
UnitOfWork.begin() throws IllegalStateException when called multiple times
http://code.google.com/p/google-guice/issues/detail?id=597
Version: guice-persist-3.0-rc2
The implementation of UnitOfWork.begin() throws exception using
precondition:
Preconditions.checkState(null == entityManager.get(),
"Work already begun on this thread. Looks like you have called
UnitOfWork.begin() twice"
+ " without a balancing call to end() in between.");
The javadoc and documentation claims that unit of works can be nested and
the begin() method can be called multiple times with no harm. Moreover
every call to Provider<EntityManager>.get() calls that begin() method if
the work of unit is not in progress.
Why the precondition was added?
--
You received this message because you are subscribed to the Google Groups
"google-guice-dev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-guice-dev?hl=en.