I am trying to delete all entities of a certain type from the datastore within my GAE application. I have the following line:
em.createQuery("DELETE m FROM "+UpdateMessage.class.getSimpleName()+" m").executeUpdate();
I am seeing the following exception:
Unable to update most recent message in datatstore: Candidate class could not be found: DELETE
I'm assuming that I am not doing the aliasing right, as it is mistaking the DELETE for an actual class. I tried just doing DELETE FROM MyClassType
without the alias, but that didn't seem to work.
Any ideas?