I have a native query that does a batch insert into a MySQL database:
String sql = \"insert into t1 (a, b) select x, y from t2 where x = \'foo\'\"; E
In JPA you don't. JDO is the only standard that supports setting txn isolation. Obviously going for particular implementations methods can allow it, but then you become non-portable