
liquibase.ext.hibernate.customfactory.CustomMetadataFactory Maven / Gradle / Ivy
package liquibase.ext.hibernate.customfactory;
import liquibase.ext.hibernate.database.HibernateDatabase;
import liquibase.ext.hibernate.database.connection.HibernateConnection;
import org.hibernate.boot.Metadata;
/**
* 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 CustomMetadataFactory {
/*
* Create a hibernate Configuration for the given database and connection.
*/
Metadata getMetadata(HibernateDatabase hibernateDatabase, HibernateConnection connection);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy