openjpa icon indicating copy to clipboard operation
openjpa copied to clipboard

OPENJPA-2668 fix for query execution leaking into CriteriaQuery

Open michaelwiles opened this issue 6 years ago • 0 comments

for OPENJPA-2668 added copy method to Expressons.In and use that to return the expression so that the original is not changed.

Not sure if there's a better way to do this. This is quite how can I say, simple?

This is the only Expression that I could find that dirties the original CriteriaQuery and I'm fairly convinced that this shouldn't happen.

Prior to this fix, executing the test would change the query and replace the parameter with the hydrated parameter values.

michaelwiles avatar Apr 24 '19 12:04 michaelwiles