![](/img/trans.png)
[英]Integrate liquibase extension in liquibase-maven-plugin
[英]Liquibase liquibase-maven-plugin creates tables but tables cannot be found in Integration Tests: org.hibernate.HibernateException
我正在使用Liquibase。 我希望在集成測試之前創建數據庫表。
該代碼位於GitHib上: https : //github.com/rajivj2/example2/
EmployeeJpaDAOIT.java是包含測試的類。 我要做的就是在測試真正開始之前創建表。 我可以看到插件在運行時創建表,但是集成測試拋出以下異常:
Caused by: org.hibernate.HibernateException: Missing table: employee
你能幫忙嗎?
<phase>pre-integration-test</phase>
<goals>
<goal>update</goal>
</goals>
</phase>
為什么要有目標:更新?
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.