Added DB and Hibernate dependencies with hibernate.cfg.xml and hbm.xml file.