We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f1afc65 commit 6f7a556Copy full SHA for 6f7a556
src/main/java/com/github/marschall/hibernate/batchsequencegenerator/BatchSequenceGenerator.java
@@ -3,6 +3,7 @@
3
import java.io.Serializable;
4
import java.math.BigDecimal;
5
import java.math.BigInteger;
6
+import java.math.RoundingMode;
7
import java.sql.PreparedStatement;
8
import java.sql.ResultSet;
9
import java.sql.SQLException;
@@ -385,7 +386,7 @@ Serializable extractIdentifier(ResultSet resultSet) throws SQLException {
385
386
if (resultSet.wasNull()) {
387
throw new IdentifierGenerationException("sequence returned null");
388
}
- return bigDecimal.setScale(0, BigDecimal.ROUND_UNNECESSARY).toBigInteger();
389
+ return bigDecimal.setScale(0, RoundingMode.UNNECESSARY).toBigInteger();
390
391
},
392
0 commit comments