dialect.getSequenceNextValString replacement

108 Views Asked by At

I'm upgrading to spring 3.0 and one issue I'm encountering is that dialect.getSequenceNextValString is deprecated and I'm just not sure how to replace it. It doesn't seem like dialect has anything that replace it, is there anything else I can use? Or would I need to restructure how that part of the code work? Thank you!

A bit of code below for reference how its being used.

private final String sequenceName;
PreparedStatement preparedStatement = null;
preparedStatement = connection.prepareStatement(dialect.getSequenceNextValString(sequenceName));
resultSet = preparedStatement.executeQuery();
1

There are 1 best solutions below

0
kernel On

That method has been moved to SequenceSupport interface. You can use like:

dialect.getSequenceSupport().getSequenceNextValString(sequenceName);