Added hibernate dependency to pom.xml and set up hibernate.cfg.xml