Added spring and hibernate dependency.

Added spring and hibernate dependency to pom.