I was digging around to find a solution to this problem using Oracle and the only thing I was able to find so far was the method nextval from com.mysema.query.sql.SQLExpression, but yet I'm not quite sure how to use it and didn't find anything at all even in the documentation.
Is there someone who had to use it and also have it figured out?
Just call
SQLExpressions.nextval("sequence name")
to get an expression of Long type
If you need another type you call e.g.
SQLExpressions.nextval(Integer.class, "sequence name")
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With