There is no way to stop runing query in JPA. When operator changes her mind, it will take about some seconds and as you know this timeis enough for doing lots of things in machine world!