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 eg
SQLExpressions.nextval(Integer.class, "sequence name")
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.