Compare two hibernate mapping files

2019-09-03 08:49发布

问题:

I would like liquibase to compare two hibernate mappings instead of a database as source and a hibernate mapping as reference:

liquibase --changeLogFile=c:/tmp/changelog.xml --url=hibernate:classic:c:/tmp/a.xml --referenceUrl=hibernate:classic:c:/tmp/b.xml diffChangeLog

That does not seem to work as I am getting an exception:

Liquibase diffChangeLog Failed: org.hibernate.HibernateException: /tmp/a.xml not found

Is that supposed to work? The idea is to compare two versions (svn revisions) of the same hibernate mapping file and generate a liquibase script.

标签: liquibase