jhipster不会为生成的实体生成liquibase更改日志

时间:2014-05-30 22:32:34

标签: liquibase jhipster

我做了以下事情:

  • development guide
  • 之后创建了新的jhipster应用程序
  • 根据IntelliJ的here启动带有热重装VM选项的Application类;命令行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生成的最简单方法;由于我并不热衷于手动编写,因此实体类已经掌握了所有信息。

1 个答案:

答案 0 :(得分:1)

相关问题