change entity manager class