Fix SessionFactory bean type error
Merge pull request #220 from mzry1992/refactor-db-layer

Fix SessionFactory bean type error