lib/converters/parsedJDLToJDLObject/application_converter.js
/**
 * Checks whether the entity names used in the application are present in the JDL content.
 * @param {String} applicationName - the application's name
 * @param {Array<String>} entityNamesInApplication - the entity names declared in the application
 * @param {Array<String>} entityNames - all the entity names
 */
Checks whether the entity names used in the application are present in the JDL content.
@param {String} applicationName - the application's name
@param {Array} entityNamesInApplication - the entity names declared in the application
@param {Array} entityNames - all the entity names
Checks whether the entity names used in the application are present in the JDL content . @param { String } applicationName - the application ' s name @param { Array } entityNamesInApplication - the entity names declared in the application @param { Array } entityNames - all the entity names
function checkEntityNamesInApplication(applicationName, entityNamesInApplication, entityNames) {
  const entityNameSet = new Set(entityNames);
  entityNamesInApplication.forEach(entityNameInApplication => {
    if (!entityNameSet.has(entityNameInApplication)) {
      throw new Error(
        `The entity ${entityNameInApplication} which is declared in ${applicationName}'s entity list doesn't exist.`
      );
    }
  });
}
function checkEntityNamesInApplication ( applicationName , entityNamesInApplication , entityNames ) { const entityNameSet = new Set ( entityNames ) ; entityNamesInApplication . forEach ( entityNameInApplication => { if ( ! entityNameSet . has ( entityNameInApplication ) ) { throw new Error ( ` ${ entityNameInApplication } ${ applicationName } ` ) ; } } ) ; }
Checks whether the entity names used in the application are present in the JDL content.
Checks whether the entity names used in the application are present in the JDL content .