JpaPersistService does not allow nested UnitOfWork
Open
- Dominant language
- Java
- Stars
- 12.7k
- Forks
- 1.7k
- Avg merge
- 11m
- Merged PRs (30d)
- 2
Description
JpaPersistService's implementation of UnitOfWork::begin looks like it throws an exception if called within an existing UnitOfWork: https://github.com/google/guice/blob/e960b66d3d5931b9cb1aebd49e452e2c489a921e/extensions/persist/src/com/google/inject/persist/jpa/JpaPersistService.java#L75
But the interface JavaDoc says that this should be okay: https://github.com/google/guice/blob/e960b66d3d5931b9cb1aebd49e452e2c489a921e/extensions/persist/src/com/google/inject/persist/UnitOfWork.java#L42.
Is this an error?
Contributor guide
Assessment
This issue has not been assessed yet.