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>
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>