首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >使用Jhipster生成Jhipster multitenancy应用程序时出现Hibernate缓存错误

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

Stack Overflow用户
提问于 2018-01-01 01:55:31
回答 1查看 195关注 0票数 0

为了生成主要的jhipster应用程序,我使用了jhipster generator v4.13.1。在此之后,我使用命令

代码语言:javascript
复制
`npm install generator-jhipster-multitenancy` 

以便安装多租户发电机。

当我尝试使用yo jhipster-multitenancy时,系统会提示我在应用程序中给出了租户的别名是什么?(公司)在这种情况下,我按回车键后,下一个错误发生

代码语言:javascript
复制
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
EN

回答 1

Stack Overflow用户

发布于 2018-01-02 15:44:04

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

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/48044668

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档