openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aroche <>
Subject Re: Deleting based on CriteriaQuery
Date Thu, 07 Feb 2013 15:07:25 GMT
Thats pretty much what I'm seeing. The query string probably isn't close
enough to JPQL to generate a delete query/update from.

Is there any other way in OpenJPA to execute a delete based on a
I know support for this is anticiipated in JPA 2.1 but need an interim

At the moment I'm looking at selecting back the IDs and feeding them into a
JPAQL update along the lines of: "DELETE FROM Entity e where in (1, 2,
3, 4...)"; 

Any alternatives?


View this message in context:
Sent from the OpenJPA Users mailing list archive at

View raw message