|
Part of you problem is that you are trying to use executeUpdate(). For native queries and executeUpdate() when no "sync spaces" are defined we clear all caches. That is by design.
I'll add some additional tests to make sure that this works as expected in the other cases as well. Assuming they do (and your test does) then I'll be rejecting this.
The work around for your case is to add the synchronized space before issuing the executeUpdate()
|