added correct spring configuration for sessionFactory