very minor cleanups
This commit is contained in:
parent
35f0c57f07
commit
75f3f699b5
|
@ -144,20 +144,19 @@ public class MetadataBuilderImpl implements MetadataBuilderImplementor, TypeCont
|
|||
// these should be set during the StandardServiceRegistryBuilder.configure call
|
||||
applyCfgXmlValues( serviceRegistry.getService( CfgXmlAccessService.class ) );
|
||||
|
||||
final ClassLoaderService classLoaderService = serviceRegistry.getService( ClassLoaderService.class );
|
||||
for ( MetadataBuilderInitializer contributor : classLoaderService.loadJavaServices( MetadataBuilderInitializer.class ) ) {
|
||||
for ( MetadataBuilderInitializer contributor :
|
||||
serviceRegistry.getService( ClassLoaderService.class )
|
||||
.loadJavaServices( MetadataBuilderInitializer.class ) ) {
|
||||
contributor.contribute( this, serviceRegistry );
|
||||
}
|
||||
}
|
||||
|
||||
private void applyCfgXmlValues(CfgXmlAccessService service) {
|
||||
final LoadedConfig aggregatedConfig = service.getAggregatedConfig();
|
||||
if ( aggregatedConfig == null ) {
|
||||
return;
|
||||
}
|
||||
|
||||
for ( CacheRegionDefinition cacheRegionDefinition : aggregatedConfig.getCacheRegionDefinitions() ) {
|
||||
applyCacheRegionDefinition( cacheRegionDefinition );
|
||||
if ( aggregatedConfig != null ) {
|
||||
for ( CacheRegionDefinition cacheRegionDefinition : aggregatedConfig.getCacheRegionDefinitions() ) {
|
||||
applyCacheRegionDefinition( cacheRegionDefinition );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@ import org.hibernate.boot.spi.MetadataBuildingContext;
|
|||
import org.hibernate.boot.spi.MetadataBuildingOptions;
|
||||
|
||||
/**
|
||||
* Root MetadataBuildingContext
|
||||
* Root {@link MetadataBuildingContext}.
|
||||
*/
|
||||
public class MetadataBuildingContextRootImpl implements MetadataBuildingContext {
|
||||
private final String contributor;
|
||||
|
|
|
@ -124,7 +124,6 @@ import static org.hibernate.type.SqlTypes.TIME_WITH_TIMEZONE;
|
|||
import static org.hibernate.type.SqlTypes.TINYINT;
|
||||
import static org.hibernate.type.SqlTypes.VARBINARY;
|
||||
import static org.hibernate.type.SqlTypes.VARCHAR;
|
||||
import static org.hibernate.type.descriptor.DateTimeUtils.appendAsTimestampWithMicros;
|
||||
import static org.hibernate.type.descriptor.DateTimeUtils.appendAsTimestampWithNanos;
|
||||
|
||||
/**
|
||||
|
|
|
@ -13,12 +13,10 @@ import java.sql.SQLException;
|
|||
import java.sql.Types;
|
||||
|
||||
import org.hibernate.dialect.Dialect;
|
||||
import org.hibernate.engine.jdbc.spi.JdbcServices;
|
||||
import org.hibernate.type.SqlTypes;
|
||||
import org.hibernate.type.descriptor.ValueBinder;
|
||||
import org.hibernate.type.descriptor.ValueExtractor;
|
||||
import org.hibernate.type.descriptor.WrapperOptions;
|
||||
import org.hibernate.type.descriptor.java.BasicJavaType;
|
||||
import org.hibernate.type.descriptor.java.JavaType;
|
||||
import org.hibernate.type.descriptor.jdbc.internal.JdbcLiteralFormatterCharacterData;
|
||||
import org.hibernate.type.descriptor.jdbc.spi.JdbcTypeRegistry;
|
||||
|
|
|
@ -6,9 +6,6 @@
|
|||
*/
|
||||
package org.hibernate.orm.test.query.sqm.mutation;
|
||||
|
||||
import java.sql.SQLException;
|
||||
|
||||
import org.hibernate.annotations.QueryHints;
|
||||
import org.hibernate.query.IllegalMutationQueryException;
|
||||
|
||||
import org.hibernate.testing.orm.domain.StandardDomainModel;
|
||||
|
@ -23,14 +20,8 @@ import jakarta.persistence.Entity;
|
|||
import jakarta.persistence.Id;
|
||||
import jakarta.persistence.NamedNativeQuery;
|
||||
import jakarta.persistence.NamedQuery;
|
||||
import jakarta.persistence.PersistenceException;
|
||||
import jakarta.persistence.QueryHint;
|
||||
import jakarta.persistence.SqlResultSetMapping;
|
||||
import jakarta.persistence.Table;
|
||||
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
import static org.junit.jupiter.api.Assertions.fail;
|
||||
|
||||
/**
|
||||
* @author Steve Ebersole
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue