HHH-6509 - Aligns with metamodel-to-master merge.

This commit is contained in:
Karel Maesen 2014-04-08 23:47:30 +02:00 committed by Steve Ebersole
parent 55bec79cd4
commit eb8992a70b
3 changed files with 9 additions and 9 deletions

View File

@ -1,11 +1,11 @@
package org.hibernate.spatial.integration;
import java.sql.Connection;
import java.util.Map;
import org.hibernate.HibernateException;
import org.hibernate.dialect.Dialect;
import org.hibernate.engine.jdbc.dialect.internal.DialectFactoryImpl;
import org.hibernate.engine.jdbc.dialect.spi.DialectResolutionInfoSource;
import org.hibernate.spatial.HibernateSpatialConfiguration;
import org.hibernate.spatial.dialect.oracle.OracleSpatial10gDialect;
@ -32,8 +32,8 @@ public class SpatialDialectFactory extends DialectFactoryImpl {
}
@Override
public Dialect buildDialect(Map configValues, Connection connection) throws HibernateException {
final Dialect dialect = super.buildDialect( configValues, connection );
public Dialect buildDialect(Map configValues, DialectResolutionInfoSource resolutionInfoSource) throws HibernateException {
final Dialect dialect = super.buildDialect( configValues, resolutionInfoSource );
if (dialect instanceof OracleSpatial10gDialect) {
return new OracleSpatial10gDialect( configuration );
}

View File

@ -109,8 +109,8 @@ public abstract class SpatialFunctionalTestCase extends BaseCoreFunctionalTestCa
*
* @return
*/
public void afterMetadataBuilt(MetadataImplementor metadataImplementor) {
super.afterMetadataBuilt( metadataImplementor );
protected void afterMetadataBuilt(MetadataImplementor metadataImplementor) {
super.afterConstructAndConfigureMetadata( metadataImplementor );
initializeSpatialTestSupport( metadataImplementor );
}

View File

@ -51,18 +51,18 @@ public abstract class TestSupport {
public abstract SQLExpressionTemplate getSQLExpressionTemplate();
protected String driver() {
return configurationService.getSetting( AvailableSettings.DRIVER );
return configurationService.getSetting( AvailableSettings.DRIVER, String.class, "" );
}
protected String url() {
return configurationService.getSetting( AvailableSettings.URL );
return configurationService.getSetting( AvailableSettings.URL, String.class, "" );
}
protected String user() {
return configurationService.getSetting( AvailableSettings.USER );
return configurationService.getSetting( AvailableSettings.USER, String.class, "" );
}
protected String passwd() {
return configurationService.getSetting( AvailableSettings.PASS );
return configurationService.getSetting( AvailableSettings.PASS, String.class, "" );
}
}