entitymanager fully implemented