the query is submitted to lower layers (JDBC, then DB) and most of the time of query execution is spend in DB layer so there is no way to stop it in JPA layer.