Fix: some bugs
ADD: use mogenerator.objectClassOnly in entity useinfo to generate object class only