I have a sequence in the Oracle databse. I want to get the next value of the sequence from Java code. Is it possible to do the same. What I got from search on google is only that we can create custom sequences using Hibernate.
I want to get the next value of the sequence from Java code
Why? If you are using Hibernate with the sequence generator class you shouldn't ever need to get the value of the sequence explicitly. That is, unless you are using the sequence for something other than primary key generation?