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:
parent
2c2717013b
commit
dceb92d4a5
|
@ -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 );
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue