Liquibase diffChangeLog 针对 Hibernate 映射定义
这个问题与“Hibernate使用JPA(带注释的实体)和liquibase”。
我实际上想知道在针对 Hibernate 映射定义进行 Liquibase diff 时会发生什么。
它似乎产生了什么: 一个 liquibase 变更日志,它将我的休眠映射的状态迁移到数据库的当前映像。
我所希望的: liquibase 变更日志,它迁移现有(旧)数据库以反映我的(新)休眠映射中的更改。
我期待错误的事情吗?或者我做错了什么?
谢谢你让我知道! J。
This question is related to "Hibernate using JPA (annotated Entities) and liquibase".
I was actually wondering what to expect when doing a Liquibase diff against a Hibernate mapping definition.
What it seems to produce: A liquibase changelog that migrates the state of my hibernate mappings to the current image of the database.
What I was hoping for: A liquibase changelog that migrates the existing (old) database to reflect the changes in my (new) hibernate mappings.
Am I expecting the wrong thing? or am I doing something wrong?
Thank you for letting me know!
J.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
答案太明显了...
这只是翻转基础系统和目标系统的问题:-)
变成:
抱歉!
睡觉时间到了:-)
The answer was too obvious...
It was just a matter of flipping the base- and target system :-)
becomes:
Sorry!
Time for sleep :-)