Michal Krasny
Michal Krasny

Reputation: 5916

Liquibase generate update script against source code

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.

Upvotes: 1

Views: 773

Answers (1)

dbf
dbf

Reputation: 6499

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.

Upvotes: 2

Related Questions