User Tools

Site Tools


next_sequence_value

Generate Next Sequence Value with JPA

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