1

On our project we use Liquibase. So far, if we make any changes in our Hibernate Entities, we have to manually write a Liquibase ChangeLog and add it to our change logs.

Is it possible to generate the ChangeLog file, that would contain only the new changes that developer made?

I was thinking about creating some In-Memory DB, which would be created by Hibernate with dataSource.ddl.auto=create option and then run some database diff, described here http://www.liquibase.org/documentation/diff.html, but this looks like clumsy solution to me and I don't want to reinvent a wheel.

1 Answer 1

2

There is a Hibernate extension for Liquibase https://github.com/liquibase/liquibase-hibernate/wiki and according to the doc it does what you want. But I have not used it myself so I am not aware about its limitations etc.

2
  • Thanks for the tip, however I was not able to make it running, the Driver class was not specified and could not be determined from the url exception keeps appearing, no matter what I do. Also it seems that project is not well maintained, there are plenty of pretty old bugs github.com/liquibase/liquibase-hibernate/issues Jan 20, 2016 at 15:39
  • for yor issue I think some sugestions are available here: stackoverflow.com/questions/20031317/… But, as I said, I have not used it earlier so there could be some more problems.
    – dbf
    Jan 20, 2016 at 16:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.