Re: [hibernate-dev] hibernate-delta

2013-07-03 Thread Gregor Zeitlinger
It says ...between your Hibernate config file and your development database... (http://www.liquibase.org/documentation/hibernate.html) It's obvious actually, what else could you compare the hibernate.cfg.xml to. But maybe I should ask the liquibase-hiberante developers if they are interested in

Re: [hibernate-dev] hibernate-delta

2013-06-28 Thread Steve Ebersole
That's not true. Neither liquibase nor flyway use a connection to the database. On Jun 28, 2013 11:22 AM, "Gregor Zeitlinger" wrote: > The tool you mention works against a database connection which is not what > I want. > > Steve Ebersole wrote: > > >Tools do exist that do this already. Liquib

Re: [hibernate-dev] hibernate-delta

2013-06-28 Thread Steve Ebersole
Tools do exist that do this already. Liquibase and Flyway are 2 I know of. Liquibase even has some support for generating its "change logs" from Hibernate mappings[1]. [1] http://www.liquibase.org/documentation/hibernate.html On 06/24/2013 07:20 AM, Gregor Zeitlinger wrote: > The main differe

Re: [hibernate-dev] hibernate-delta

2013-06-24 Thread Gregor Zeitlinger
The main difference is that hibernate-delta does NOT run against a live database. I do load the previous version of a mapping from a custom XML file. This enables some scenarios that are not possible with the hibernate build in schemaupdate, such as 1. add a non-null column 2. change the data

[hibernate-dev] hibernate-delta

2013-06-20 Thread Gregor Zeitlinger
Hi, I've created https://github.com/txtr/hibernate-delta because I couldn't find a solution that would generate SQL update statements based on the fields that I added to my @Entity. The trick is that it stores the schema in an XML file that is commited to git. That way, you only get the differe