使用Jhipster生成jhipster-multitenancy应用程序时出现Hibernate缓存错误

问题描述 投票:0回答:1

我使用jhipster-generator v4.13.1来生成主jhipster应用程序。之后我使用命令

`npm install generator-jhipster-multitenancy` 

为了安装多租户发生器。

当我尝试做yo jhipster-multitenancy时出现的问题,给出了一个提示,你的申请中给出了租户的别名是什么? (公司)在我输入这种情况后,下一个错误发生

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
jhipster
1个回答
2
投票

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

© www.soinside.com 2019 - 2024. All rights reserved.