Java Code Examples for org.hibernate.cfg.Settings#getDialect()

The following examples show how to use org.hibernate.cfg.Settings#getDialect() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: SchemaExport.java    From cacheonix-core with GNU Lesser General Public License v2.1 5 votes vote down vote up
/**
 * Create a schema exporter for the given Configuration
 * and given settings
 */
public SchemaExport(Configuration cfg, Settings settings) throws HibernateException {
	dialect = settings.getDialect();
	connectionHelper = new SuppliedConnectionProviderConnectionHelper(
			settings.getConnectionProvider()
	);
	dropSQL = cfg.generateDropSchemaScript( dialect );
	createSQL = cfg.generateSchemaCreationScript( dialect );
	format = settings.isFormatSqlEnabled();
}
 
Example 2
Source File: SchemaUpdate.java    From cacheonix-core with GNU Lesser General Public License v2.1 5 votes vote down vote up
public SchemaUpdate(Configuration cfg, Settings settings) throws HibernateException {
	this.configuration = cfg;
	dialect = settings.getDialect();
	connectionHelper = new SuppliedConnectionProviderConnectionHelper(
			settings.getConnectionProvider()
	);
	exceptions = new ArrayList();
}
 
Example 3
Source File: SchemaValidator.java    From cacheonix-core with GNU Lesser General Public License v2.1 5 votes vote down vote up
public SchemaValidator(Configuration cfg, Settings settings) throws HibernateException {
	this.configuration = cfg;
	dialect = settings.getDialect();
	connectionHelper = new SuppliedConnectionProviderConnectionHelper(
			settings.getConnectionProvider()
	);
}
 
Example 4
Source File: SchemaUpdate.java    From document-management-system with GNU General Public License v2.0 4 votes vote down vote up
public SchemaUpdate(Configuration cfg, Settings settings) throws HibernateException {
	this.configuration = cfg;
	dialect = settings.getDialect();
	connectionProvider = settings.getConnectionProvider();
	exceptions = new ArrayList<Exception>();
}