added persistence settings in applicationcontext and pom.xml