google / google/guice

JpaPersistService does not allow nested UnitOfWork

Open
#1,555 1 comment 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.