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


------------------------------------------------------------------------------
_______________________________________________
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel

Reply via email to