select nextval ( mySchema.mySequence )
This command will return the next value of a sequence.
How can I get the next N values from a sequence in SQL?
My current setup uses postgreSQL, and Hibernate s native SQL queries, but any solution is appreciated.