@Andrea No. That's a related, but different bug. This bug is a race condition - it happens when two threads call createNativeQuery with the same query, and no threads call createSQLQuery.