How to configure hibernate configuration.