DataNucleus JIRA is now in read-only mode. Raise any new issues in GitHub against the plugin that it applies to. DataNucleus JIRA will remain for the foreseeable future but will eventually be discontinued
Issue Details (XML | Word | Printable)

Key: NUCCORE-607
Type: New Feature New Feature
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Andy Jefferson
Reporter: Andy Jefferson
Votes: 0
Watchers: 0

If you were logged in you would be able to see more operations.
DataNucleus Core

JDOQL : Allow bulk UPDATE/DELETE "statements"

Created: 28/Nov/10 08:11 PM   Updated: 10/Dec/10 07:48 AM   Resolved: 28/Nov/10 08:51 PM
Component/s: Queries
Affects Version/s: None
Fix Version/s: 2.2.0.release

 Description  « Hide
Although not part of JDO, would be nice to allow a user to specify
DELETE FROM mydomain.MyClass WHERE ...

UPDATE mydomain.MyClass SET fld=val, fld2=val2 WHERE ...

and enable it by way of a persistence property

Sort Order: Ascending order - Click to sort in descending order
Andy Jefferson added a comment - 28/Nov/10 08:51 PM
SVN trunk allows this. Just set the persistence property
and then you can do

DELETE FROM mydomain.MyClass WHERE ...

UPDATE mydomain.MyClass SET fld1=val1, fld2=val2 WHERE ...