Refined hibernate settings