generators/fix-entity/prompts.js
function askForTableName() {
    if (this.force) {
        return;
    }

    const validateTableName = dbh.validateTableName;
    const done = this.async();

    this.prompt([
        {
            type: 'input',
            name: 'dbhTableName',
            validate: ((input) => {
                const prodDatabaseType = this.jhipsterAppConfig.prodDatabaseType;
                return validateTableName(input, prodDatabaseType);
            }),
            message: 'What is the table name for this entity ?',
            default: this.entityTableName
        }
    ]).then((props) => {
        this.tableNameInput = props.dbhTableName;
        done();
    });
}
function askForTableName() {
    if (this.force) {
        return;
    }

    const validateTableName = dbh.validateTableName;
    const done = this.async();

    this.prompt([
        {
            type: 'input',
            name: 'dbhTableName',
            validate: ((input) => {
                const prodDatabaseType = this.jhipsterAppConfig.prodDatabaseType;
                return validateTableName(input, prodDatabaseType);
            }),
            message: 'What is the table name for this entity ?',
            default: this.entityTableName
        }
    ]).then((props) => {
        this.tableNameInput = props.dbhTableName;
        done();
    });
}
function askForTableName ( ) { if ( this . force ) { return ; } const validateTableName = dbh . validateTableName ; const done = this . async ( ) ; this . prompt ( [ { type : 'input' , name : 'dbhTableName' , validate : ( ( input ) => { const prodDatabaseType = this . jhipsterAppConfig . prodDatabaseType ; return validateTableName ( input , prodDatabaseType ) ; } ) , message : 'What is the table name for this entity ?' , default : this . entityTableName } ] ) . then ( ( props ) => { this . tableNameInput = props . dbhTableName ; done ( ) ; } ) ; }
Ask the table name for an entity
Ask the table name for an entity