fix bean cfg for entityManager