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 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()