Fix SessionFactory bean type error

![9dj a9yh 0f3i784_ lmk m](https://cloud.githubusercontent.com/assets/2420472/2813669/4f33708e-ce93-11e3-95af-43158d22092b.jpg)