Add dependencies in ivy.xml . Configure Hibernate.