OK, native queries in JPA. Not really well documented. Of course I understand that we really should not be doing that, but hey there are times where it is just plain easier.
The following code snippet goes after an Oracle sequence and gets the value.
EntityManager em = this.getEntityManager(); Query query = em.createNativeQuery("SELECT BLOG_ITEM_SEQ.nextval FROM DUAL");