How to get next sequence in spring jpa?

How to get next sequence in spring jpa?

Add Comment
1 Answer(s)

@Query(value = “SELECT cust_seq.nextval FROM dual”, nativeQuery =
true)
String getNextCustId();

Answered on July 19, 2019.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.