From reading here and on jira, it sounds like the current hibernate diff tool is lacking some features (sequence support, user types, etc). It also sounds like it is going to be split out into an extension.
The way I plan to use liquibase + hibernate now is to us hbm2ddl and then use the ddl on a temporary database I create, then run the current changelog on another temp database, then run the normal liquibase diff against those two DB’s. This would, effectively, be comparing the hibernate configuration against the current changelog - just in a rather roundabout way.
I’m probably going to automate this. The only parameters it would new would be a user / password for a database that has permissions to create / drop databases, the location of the hibernate config and the location of the changelog.
It could possibly be done using hsqldb as the staging ground if the changes were not too database specific, although te hibernate configuration would have to be modified to use the hsqldb dialect, you could probably us resource filtering an set those properties up in maven.
It seems that this way would take a lot less time to get to a fully workable solution than it would be to do it the “right way”
Any thoughts? I could craft up a maven mojo to do this process pretty quickly I think.