It appears that in previous versions of Hibernate we were only using the ROWID value when updating an entity. In 6, we were including the ROWID column in the delete clause but not correctly binding the parameter value.
We should make this behavior consistent, using ROWID (when available, i.e. when the entity was read from the database) for both update and delete restrictions.
We recive the folowing error when we are trying to delete the entity with the @RowID:
Test cases with reprodusing are attached.