Revert "There is another method to configure hibernate parameters. I commented"

This reverts commit b3ff40d5229796d77d066a3a361d0a9fee6fc468.