In the hibernate entitymanager manual, section 6.1. Bulk update/delete:
String ejbqlUpdate = "update Customer set name = :newName where name =
:oldName"
int updatedEntities = entityManager.createQuery( hqlUpdate )
The variable name changes: from ejbqlUpdate to hqlUpdate. It should be
the same.
--
With kind regards,
Geoffrey De Smet
|