On Mon, Apr 2, 2018 at 1:03 AM, Pawel Veselov <pawel.vese...@gmail.com> wrote: > On Sun, Apr 1, 2018 at 2:51 PM, Pawel Veselov <pawel.vese...@gmail.com> wrote: >> I want to re-use the same parameter twice. However, I'm seeing all >> kinds of behavior except for the one I want. This is with OpenJPA >> 2.4.2. > This seems to be broken in OpenJPA though. Especially if sub-queries > are involved. I traced this as much as I could, but I don't understand > the intend of the code.
I've opened https://issues.apache.org/jira/browse/OPENJPA-2733, that contains the description, the test case, and a fix, though the fix still leaves some problems.