User Tools

Site Tools



This shows you the differences between two versions of the page.

Link to this comparison view

next_sequence_value [2015/11/11 16:05] (current)
mihael created
Line 1: Line 1:
 +====== Generate Next Sequence Value with JPA ======
 +<sxh java>
 +Query query = em.createNativeQuery("​SELECT NEXTVAL('​schema.sequence_name'​)"​);​
 +Long result = (Long) query.getSingleResult();​
 +return result;
next_sequence_value.txt ยท Last modified: 2015/11/11 16:05 by mihael