Extract Configuration.configure(filename) to HibernateDatabase

Description

The following code in HibernateDatabaseSnapshotGenerator.createSnapshot() makes it impossible to call createSnapshot() with a pre-configured Configuration (such as one extracted from Ejb3Configuration when using JPA.

If the call to Configuration.configure() was pushed into HibernateDatabase.createConfiguration() this allows createConfiguration() to be overridden, to provide a pre-configured Configuration, such as one created by Ejb3Configuration, including as when used with Spring 3.

The code for

new HibernateDatabase.createConfiguration()

Environment

None

Activity

Show:

Nathan Voxland October 11, 2013 at 7:33 PM
Edited

This should be better in the new 3.0 liquibase-hibernate integration at https://github.com/liquibase/liquibase-hibernate

Fixed

Details

Reporter

Priority

Created March 19, 2013 at 4:31 PM
Updated October 11, 2013 at 7:33 PM
Resolved October 11, 2013 at 7:33 PM