Note: in Hibernate 5.x, we did not include the @Where annotation clause in mutation queries, like the one in the example, to delete from the users table. This behavior is intended, to respect the “soft delete” nature of the annotation, and it was changed with Hibernate 6.0, even though there was no mention of it in the Migration Guide. I will also propose a change for that. |