liquibase.ext.hibernate.customfactory.CustomEjb3ConfigurationFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of liquibase-hibernate4 Show documentation
Show all versions of liquibase-hibernate4 Show documentation
Liquibase extension for hibernate integration including generating changesets based on changed
hibernate mapping files
The newest version!
package liquibase.ext.hibernate.customfactory;
import liquibase.ext.hibernate.database.HibernateDatabase;
import liquibase.ext.hibernate.database.connection.HibernateConnection;
import org.hibernate.cfg.Configuration;
/**
* Implement this interface to dynamically generate a hibernate:ejb3 configuration.
* For example, if you create a class called com.example.hibernate.MyConfig, specify a url of hibernate:ejb3:com.example.hibernate.MyConfig.
*/
public interface CustomEjb3ConfigurationFactory {
/**
* Create a hibernate Configuration for the given database and connection.
*/
Configuration getConfiguration(HibernateDatabase hibernateDatabase, HibernateConnection connection);
}