HHH-8878 Fix logged message about PooledLoOptimizer being created
Conflicts: hibernate-core/src/main/java/org/hibernate/id/enhanced/OptimizerFactory.java
This commit is contained in:
parent
5475d9f964
commit
5b2bd9aa48
|
@ -27,7 +27,6 @@ import java.lang.reflect.Constructor;
|
||||||
|
|
||||||
import org.hibernate.internal.CoreMessageLogger;
|
import org.hibernate.internal.CoreMessageLogger;
|
||||||
import org.hibernate.internal.util.ReflectHelper;
|
import org.hibernate.internal.util.ReflectHelper;
|
||||||
|
|
||||||
import org.jboss.logging.Logger;
|
import org.jboss.logging.Logger;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -29,7 +29,7 @@ import java.util.concurrent.ConcurrentHashMap;
|
||||||
|
|
||||||
import org.hibernate.HibernateException;
|
import org.hibernate.HibernateException;
|
||||||
import org.hibernate.id.IntegralDataTypeHolder;
|
import org.hibernate.id.IntegralDataTypeHolder;
|
||||||
|
import org.hibernate.internal.CoreMessageLogger;
|
||||||
import org.jboss.logging.Logger;
|
import org.jboss.logging.Logger;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -41,7 +41,10 @@ import org.jboss.logging.Logger;
|
||||||
* @see PooledOptimizer
|
* @see PooledOptimizer
|
||||||
*/
|
*/
|
||||||
public class PooledLoOptimizer extends AbstractOptimizer {
|
public class PooledLoOptimizer extends AbstractOptimizer {
|
||||||
private static final Logger log = Logger.getLogger( PooledLoOptimizer.class );
|
private static final CoreMessageLogger LOG = Logger.getMessageLogger(
|
||||||
|
CoreMessageLogger.class,
|
||||||
|
PooledLoOptimizer.class.getName()
|
||||||
|
);
|
||||||
|
|
||||||
private static class GenerationState {
|
private static class GenerationState {
|
||||||
// last value read from db source
|
// last value read from db source
|
||||||
|
@ -61,9 +64,7 @@ public class PooledLoOptimizer extends AbstractOptimizer {
|
||||||
if ( incrementSize < 1 ) {
|
if ( incrementSize < 1 ) {
|
||||||
throw new HibernateException( "increment size cannot be less than 1" );
|
throw new HibernateException( "increment size cannot be less than 1" );
|
||||||
}
|
}
|
||||||
if ( log.isTraceEnabled() ) {
|
LOG.creatingPooledLoOptimizer( incrementSize, returnClass.getName() );
|
||||||
log.tracev( "Creating pooled optimizer (lo) with [incrementSize={0}; returnClass=]", incrementSize, returnClass.getName() );
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -1674,4 +1674,8 @@ public interface CoreMessageLogger extends BasicLogger {
|
||||||
"(%2$s=true)"
|
"(%2$s=true)"
|
||||||
)
|
)
|
||||||
void applyingExplicitDiscriminatorColumnForJoined(String className, String overrideSetting);
|
void applyingExplicitDiscriminatorColumnForJoined(String className, String overrideSetting);
|
||||||
|
|
||||||
|
@LogMessage(level = DEBUG)
|
||||||
|
@Message(value = "Creating pooled optimizer (lo) with [incrementSize=%s; returnClass=%s]", id = 458)
|
||||||
|
void creatingPooledLoOptimizer(int incrementSize, String name);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue