fix issue with hibernate bulk update (use HQL instead)