简体   繁体   中英

Is it possible to calculate liquibase:diff with liquibase-hibernate plugin and hibernate orm xml?

I am aware of liquibase:diff which could give me the difference scripts between my databases.

I am trying to generate the difference scripts between my database and my jpa entity .

I have my hibernate orm.xml of my jpa entity and I want to find out the difference scripts using liquibase-hibernate plugin.

Is this possible, if so how can it be achieved?

Documentation here indicates it is possible to compare a hibernate entity model: https://www.liquibase.org/blog/liquibase-diffs .

Although I have not tried this, I think you would use org.hibernate.dialect.< specificdb > for the driver.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM