Put all hibernate configuration inside sessionFactory bean definition in applicationContexts.xml.
Removed hibernate.cfg.xml.