HHH-5042 - TableGenerator does not increment hibernate_sequences.next_hi_value anymore after having exhausted the current lo-range

git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@19488 1b8cb986-b30d-0410-93ca-fae66ebed9b2
This commit is contained in:
Steve Ebersole 2010-05-12 20:45:00 +00:00
parent 2c2717013b
commit dceb92d4a5
1 changed files with 3 additions and 1 deletions

View File

@ -279,6 +279,8 @@ public class MultipleHiLoPerTableGenerator
maxLo = PropertiesHelper.getInt(MAX_LO, params, Short.MAX_VALUE); maxLo = PropertiesHelper.getInt(MAX_LO, params, Short.MAX_VALUE);
returnClass = type.getReturnedClass(); returnClass = type.getReturnedClass();
if ( maxLo >= 1 ) {
hiloOptimizer = new OptimizerFactory.LegacyHiLoAlgorithmOptimizer( returnClass, maxLo ); hiloOptimizer = new OptimizerFactory.LegacyHiLoAlgorithmOptimizer( returnClass, maxLo );
} }
}
} }