Skip to content

Commit 6f7a556

Browse files
committed
fix deprecation warning
1 parent f1afc65 commit 6f7a556

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/com/github/marschall/hibernate/batchsequencegenerator/BatchSequenceGenerator.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import java.io.Serializable;
44
import java.math.BigDecimal;
55
import java.math.BigInteger;
6+
import java.math.RoundingMode;
67
import java.sql.PreparedStatement;
78
import java.sql.ResultSet;
89
import java.sql.SQLException;
@@ -385,7 +386,7 @@ Serializable extractIdentifier(ResultSet resultSet) throws SQLException {
385386
if (resultSet.wasNull()) {
386387
throw new IdentifierGenerationException("sequence returned null");
387388
}
388-
return bigDecimal.setScale(0, BigDecimal.ROUND_UNNECESSARY).toBigInteger();
389+
return bigDecimal.setScale(0, RoundingMode.UNNECESSARY).toBigInteger();
389390
}
390391
},
391392

0 commit comments

Comments
 (0)