mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-17 08:35:13 +00:00
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 void configure(Type type, Properties params, Dialect dialect) throws Mapp
|
|||||||
maxLo = PropertiesHelper.getInt(MAX_LO, params, Short.MAX_VALUE);
|
maxLo = PropertiesHelper.getInt(MAX_LO, params, Short.MAX_VALUE);
|
||||||
returnClass = type.getReturnedClass();
|
returnClass = type.getReturnedClass();
|
||||||
|
|
||||||
hiloOptimizer = new OptimizerFactory.LegacyHiLoAlgorithmOptimizer( returnClass, maxLo );
|
if ( maxLo >= 1 ) {
|
||||||
|
hiloOptimizer = new OptimizerFactory.LegacyHiLoAlgorithmOptimizer( returnClass, maxLo );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user