Jeremy Chapman commented on Bug HHH-4083

I think this is a usage issue, not a bug. Your sql wants to bind the parameters in a different order than Hibernate will pass them. I suggest trying something like this:

<sql-delete>declare @id int = ?, @date date = ?; UPDATE myentity SET deleted = 1, lastupdated = @date WHERE myentityid = @id</sql-delete>

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira