Hibernate dependencies working