In this version I posted I have set to 0, but even with 1 it always jump directly to 2.
It worked sometime before, but suddenly it is now always starting with 2. I am using ElevateDB last version. I have killed the database and started from nothing to make sure.
What you mean with direct SQL to retrieve the sequence, is the sequence stored on the database ?
Use the command listener to check what sql statements are being executed by aurelius. Try to execute the same statements in the empty (newly recreated) database to see what happens. It's hard to guess things without further tests, there is a need at least to determine if the problem is in Aurelius or in database itself.