Description
BAM component uses JpaTemplate class deprecated in Spring 3.1. As JpaTemplate has been removed in Spring 4, BAM component can't be compiled anymore.
To reproduce the error execute the following command:
mvn clean install -Pspring4
We need to migrate BAM component to raw EntityManagerFactory/EntityManager API, as recommend by the Spring team.