Fixed setting of parameters in hibernate query