code: function generateEntities(entityIdsToGenerate, classes, entityNamesToGenerate, options) {
    if (shouldEntitiesBeGenerated(entityIdsToGenerate, entityNamesToGenerate, classes)) {
      winston.info('No entity has to be generated.');
      return;
    }
  
    displayEntitiesToGenerate(entityIdsToGenerate, entityNamesToGenerate, classes);
  
    entityIdsToGenerate.forEach((entityToGenerate, index) => {
      if (entityNamesToGenerate.includes(classes[entityToGenerate].name)) {
        const commandWrapper = createAndInitCommandBuilder(
          classes[entityToGenerate].name,
          options,
          index !== entityIdsToGenerate.length - 1
        );
        childProcess.spawnSync(
          commandWrapper.command,
          commandWrapper.args,
          { stdio: commandWrapper.stdio }
        );
        winston.info('\n');
      }
    });
  }
docs: Generates the entities locally by using JHipster to create the JSON files, and
  generate the different output files.
  @param entityIdsToGenerate {array<String>} the entities to generate.
  @param classes {object} the classes to add.
  @param entityNamesToGenerate {array} the names of the entities to generate.
  @param options {object} an object containing:
  - force {boolean} the force flag.
  - listOfNoClient {array} the array containing the classes that won't
  have any client code.
  - listOfNoServer {array} the array containing the classes that won't
  have any server code.
  - angularSuffixes {object} the angular suffixes for each entity.
  - noFluentMethods {array} the array containing the classes that won't
  have fluent methods.