Change to JPA entity manager