使用jhipster生成jhipster多租户应用程序时发生Hibernate缓存错误

使用jhipster生成jhipster多租户应用程序时发生Hibernate缓存错误,jhipster,Jhipster,我使用jhipster生成器v4.13.1来生成jhipster主应用程序。然后我使用命令 `npm install generator-jhipster-multitenancy` 以便安装多租户发生器 当然,当我尝试执行yo jhipster Multitenance时,会出现一个提示,提示您的应用程序中给定的租户的别名是什么?(公司)在这种情况下按enter键后,下一个错误将出现 events.js:182 throw er; // Unhandled 'error' ev

我使用jhipster生成器v4.13.1来生成jhipster主应用程序。然后我使用命令

`npm install generator-jhipster-multitenancy` 
以便安装多租户发生器

当然,当我尝试执行yo jhipster Multitenance时,会出现一个提示,提示您的应用程序中给定的租户的别名是什么?(公司)在这种情况下按enter键后,下一个错误将出现

events.js:182
      throw er; // Unhandled 'error' event
      ^

ReferenceError: /home/joag/Proyectos/Munkys/prueba2/node_modules/generator-jhipster-multitenancy/generators/app/templates/src/main/java/package/domain/_User.java:26
    24| import com.fasterxml.jackson.annotation.JsonIgnore;
    25| import org.apache.commons.lang3.StringUtils;<% if (databaseType === 'sql') { %>
 >> 26| import org.hibernate.annotations.BatchSize;<% } %><% if (hibernateCache !== 'no' && databaseType === 'sql') { %>
    27| import org.hibernate.annotations.Cache;
    28| import org.hibernate.annotations.CacheConcurrencyStrategy;<% } %>
    29| import org.hibernate.validator.constraints.Email;

hibernateCache is not defined
    at eval (eval at compile (/home/joag/Proyectos/Munkys/prueba2/node_modules/ejs/lib/ejs.js:549:12), <anonymous>:28:8)
    at returnedFn (/home/joag/Proyectos/Munkys/prueba2/node_modules/ejs/lib/ejs.js:580:17)
    at Object.exports.render (/home/joag/Proyectos/Munkys/prueba2/node_modules/ejs/lib/ejs.js:384:37)
    at process (/home/joag/Proyectos/Munkys/prueba2/node_modules/mem-fs-editor/lib/actions/copy-tpl.js:12:18)
    at applyProcessingFunc (/home/joag/Proyectos/Munkys/prueba2/node_modules/mem-fs-editor/lib/actions/copy.js:13:16)
    at EditionInterface.exports._copySingle (/home/joag/Proyectos/Munkys/prueba2/node_modules/mem-fs-editor/lib/actions/copy.js:63:16)
    at files.forEach.file (/home/joag/Proyectos/Munkys/prueba2/node_modules/mem-fs-editor/lib/actions/copy.js:50:10)
    at Array.forEach (<anonymous>)
    at EditionInterface.exports.copy (/home/joag/Proyectos/Munkys/prueba2/node_modules/mem-fs-editor/lib/actions/copy.js:49:9)
    at EditionInterface.module.exports [as copyTpl] (/home/joag/Proyectos/Munkys/prueba2/node_modules/mem-fs-ed
events.js:182
投掷者;//未处理的“错误”事件
^
参考错误:/home/joag/Proyectos/Munkys/prueba2/node_modules/generator jhipster Multitenance/generators/app/templates/src/main/java/package/domain/_User.java:26
24 |导入com.fasterxml.jackson.annotation.JsonIgnore;
25 |导入org.apache.commons.lang3.StringUtils;
>>26 |导入org.hibernate.annotations.BatchSize;
27 |导入org.hibernate.annotations.Cache;
28 |导入org.hibernate.annotations.cacheconcurrency策略;
29 |导入org.hibernate.validator.constraints.Email;
hibernateCache未定义
评估时(编译时评估(/home/joag/Proyectos/Munkys/prueba2/node_modules/ejs/lib/ejs.js:549:12),:28:8)
返回时fn(/home/joag/Proyectos/Munkys/prueb2/node_modules/ejs/lib/ejs.js:580:17)
在Object.exports.render(/home/joag/Proyectos/Munkys/prueb2/node_modules/ejs/lib/ejs.js:384:37)
在进程中(/home/joag/Proyectos/Munkys/prueba2/node_modules/mem fs editor/lib/actions/copy tpl.js:12:18)
在applyProcessingFunc(/home/joag/Proyectos/Munkys/prueba2/node_modules/mem fs editor/lib/actions/copy.js:13:16)
在EditionInterface.exports.\u copySingle(/home/joag/Proyectos/Munkys/prueb2/node\u modules/mem fs editor/lib/actions/copy.js:63:16)
在files.forEach.file(/home/joag/Proyectos/Munkys/prueba2/node_modules/mem fs editor/lib/actions/copy.js:50:10)
在Array.forEach()处
在EditionInterface.exports.copy(/home/joag/Proyectos/Munkys/prueba2/node_modules/mem fs editor/lib/actions/copy.js:49:9)
在EditionInterface.module.exports[作为copyTpl](/home/joag/Proyectos/Munkys/prueb2/node_modules/mem fs ed

这是因为我们将配置
hibernateCache
更改为
cacheProvider
enableHibernateCache
。您应该在该项目中打开一个问题来通知作者,这样他也许可以修复它并发布新版本。

这是因为我们将配置
hibernateCache
更改为
cacheProvider
启用HibernateCache
。您应该在此项目中打开一个问题以通知作者,这样他就可以修复它并发布新版本。

感谢您报告此问题。我们将在本周开始讨论。感谢您报告此问题。我们将在本周开始讨论。