@@ -0,0 +1,1097 @@
+const generator = require('yeoman-generator');%0Aconst chalk = require('chalk');%0A%0Aconst replace = require('replace');%0A%0Aconst jhipsterVar = %7B%0A    moduleName: 'fix-entity '%0A%7D;%0Aconst jhipsterFunc = %7B%7D;%0A%0Amodule.exports = generator.extend(%7B%0A    initializing: %7B%0A        hello() %7B%0A            this.log(%60$%7Bchalk.blue.bold('jhipster-db-helper')%7D post entity hook beginning %5Cn%60);%0A        %7D,%0A        compose() %7B%0A            this.composeWith('jhipster:modules',%0A                %7B jhipsterVar, jhipsterFunc %7D,%0A                this.options.testmode ? %7B local: require.resolve('generator-jhipster/generators/modules') %7D : null%0A            );%0A        %7D%0A    %7D,%0A    doThings() %7B%0A        this.log('Whole entity file');%0A        this.log(this.options.entityConfig);%0A%0A        // As of now, I'll use EntityClass as a default entityTableName. This should be prompted%0A        jhipsterFunc.updateEntityConfig(this.options.entityConfig.filename, 'entityTableName', this.options.entityConfig.entityClass);%0A    %7D,%0A    goodbye() %7B%0A        this.log(%60$%7Bchalk.blue.bold('jhipster-db-helper')%7D post entity hook ended %5Cn%60);%0A    %7D%0A%7D);%0A

update entity configuration file with wanted value