I have written a query to delete some objects in my interface extending JPaRepository, but when I execute the query it throws an exception! Can anyone explain
JPaRepository
I solved the issue by using EntityManager.createQuery("your deleteStatement").executeUpdate();
EntityManager.createQuery("your deleteStatement").executeUpdate();
I Understand the question is already answered but still posting it, might be useful to other in need of solution.