fixed hibernate settings.

connect to mysql with hibernate api.