Fixed config of Spring and Hibernate; added persistence.xml