mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-07 19:58:16 +00:00
HHH-8878 Fix logged message about PooledLoOptimizer being created
Conflicts: hibernate-core/src/main/java/org/hibernate/id/enhanced/OptimizerFactory.java Conflicts: hibernate-core/src/main/java/org/hibernate/id/enhanced/OptimizerFactory.java hibernate-core/src/main/java/org/hibernate/internal/CoreMessageLogger.java
This commit is contained in:
parent
28ae6d32ea
commit
a34d740eba
@ -29,7 +29,7 @@
|
||||
|
||||
import org.hibernate.HibernateException;
|
||||
import org.hibernate.id.IntegralDataTypeHolder;
|
||||
|
||||
import org.hibernate.internal.CoreMessageLogger;
|
||||
import org.jboss.logging.Logger;
|
||||
|
||||
/**
|
||||
@ -41,7 +41,10 @@
|
||||
* @see PooledOptimizer
|
||||
*/
|
||||
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 {
|
||||
// last value read from db source
|
||||
@ -61,9 +64,7 @@ public PooledLoOptimizer(Class returnClass, int incrementSize) {
|
||||
if ( incrementSize < 1 ) {
|
||||
throw new HibernateException( "increment size cannot be less than 1" );
|
||||
}
|
||||
if ( log.isTraceEnabled() ) {
|
||||
log.tracev( "Creating pooled optimizer (lo) with [incrementSize={0}; returnClass=]", incrementSize, returnClass.getName() );
|
||||
}
|
||||
LOG.creatingPooledLoOptimizer( incrementSize, returnClass.getName() );
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -1716,4 +1716,8 @@ void unableToLocateStaticMetamodelField( String metamodelClassName,
|
||||
"@Access has to be placed on the field with an access type of AccessType.FIELD. " +
|
||||
"Using AccessType.PROPERTY on the field has no effect", id = 466)
|
||||
String accessTypeOverrideShouldBeField( String className );
|
||||
|
||||
@LogMessage(level = DEBUG)
|
||||
@Message(value = "Creating pooled optimizer (lo) with [incrementSize=%s; returnClass=%s]", id = 467)
|
||||
void creatingPooledLoOptimizer(int incrementSize, String name);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user