Added jpa support

Change-Id: I39461ad28381e702026a3971a39315bff111b53c
JPA - switched to LocalContainerEntityManagerFactoryBean

Change-Id: I70a3e35fd82785d1d6b2ade46b85b93a9d4450b8