Implemented entitymanager.