【问题标题】:jhipster doesn't generate liquibase changelog for generated entitiesjhipster 不会为生成的实体生成 liquibase 更改日志
【发布时间】:2014-05-30 22:32:33
【问题描述】:

我做了以下事情:

  • development guide 之后创建了新的 jhipster 应用程序
  • 根据来自 IntelliJ 的here 启动了具有热重载 VM 选项的应用程序类;命令行C:\dev\jdk1.8.0\bin\java -javaagent:spring_loaded/springloaded-jhipster.jar -noverify -Dspringloaded=plugins=io.github.jhipster.loaded.instrument.JHipsterLoadtimeInstrumentationPlugin -Didea.launcher.port=7538 "-Didea.launcher.bin.path=C:\dev\IntelliJ IDEA\bin" -Dfile.encoding=UTF-8 -classpath "*snip very long classpath" com.intellij.rt.execution.application.AppMain com.mysoftware.Application
  • 根据here 使用yo jhipster:entity project 创建新实体
  • 预期结果 - 一切正常
  • 获得的结果 - 转到http://localhost:8080/#/project 得到org.h2.jdbc.JdbcSQLException: Table "T_PROJECT" not found
  • /src/main/resources/config/liquibase/changelog 只有 db-changelog-001.xml
  • 重启没有帮助

所以看起来像一步

 If you have used hot reload in the previous step, JHipster has automatically created a new file named src/main/resources/config/liquibase/changelog/db-changelog--002.xml.

来自here 并没有真正发生。

我做错了什么?

手动调用生成 db-changelog-002.xml 的最简单方法是什么;由于我不热衷于手动编写它,实体类已经拥有所有信息。

【问题讨论】:

    标签: liquibase jhipster


    【解决方案1】:

    【讨论】:

    • 是的,我要看看这个错误(我是 JHipster 的主要开发者)
    猜你喜欢
    • 2019-03-30
    • 2020-02-16
    • 2016-08-01
    • 2013-09-29
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多