ernst_pluess wrote:
Guess chapter 9.3.6. Queries in native SQL of the reference manual is for you.
HTH
Ernst
HI,
thanks for your answer. I already tryed thi way, but I got thi Exception:
class java.lang.UnsupportedOperationException
this is my source code:
log.debug(session.createSQLQuery("select nextval('contacts_userid_seq')", "", Integer.class).getQueryString());
query = session.createSQLQuery("select nextval('contacts_userid_seq')", "", Integer.class);
Integer nextValue = (Integer)query.iterate().next();
log.debug("Next Value= " + nextValue.intValue());
Why I have this exception?
Something to configure?
Andrea