lib/utils/jhipster_utils.js
function checkForReservedFieldName(args) {
  if (!args) {
    return;
  }
  if (args.databaseTypeName) {
    checkFieldName(args.name, args.databaseTypeName, args.shouldThrow);
  } else {
    for (let i = 0, types = Object.keys(DatabaseTypes); i < types.length; i++) {
      checkFieldName(args.name, DatabaseTypes[types[i]], args.shouldThrow);
    }
  }
}
function checkForReservedFieldName(args) {
  if (!args) {
    return;
  }
  if (args.databaseTypeName) {
    checkFieldName(args.name, args.databaseTypeName, args.shouldThrow);
  } else {
    for (let i = 0, types = Object.keys(DatabaseTypes); i < types.length; i++) {
      checkFieldName(args.name, DatabaseTypes[types[i]], args.shouldThrow);
    }
  }
}
function checkForReservedFieldName ( args ) { if ( ! args ) { return ; } if ( args . databaseTypeName ) { checkFieldName ( args . name , args . databaseTypeName , args . shouldThrow ) ; } else { for ( let i = 0 , types = Object . keys ( DatabaseTypes ) ; i < types . length ; i ++ ) { checkFieldName ( args . name , DatabaseTypes [ types [ i ] ] , args . shouldThrow ) ; } } }
Checks for reserved field name.
@param args an object having as keys: name, databaseTypeName and shouldThrow
Checks for reserved field name .