entity manager learning