Thanks for the replies. Max, unfortunately I'm using H2. :( Alesj (or Max), could you please explain how to use JDBC with H2?
I changed my dialect to net.sf.hibernate.dialect.GenericDialect, which I would assume would use the default JDBC drivers, but that didn't solve my problem.
The Java code I am trying to execute, but which fails, is this:
List seqNo = getSession()
.createQuery("select transaction_seq.nextval from dual")
.list();
return (String)seqNo.get(0);
The dialect is this:
net.sf.hibernate.dialect.GenericDialect
But I also tried and failed with:
net.sf.hibernate.dialect.Oracle9Dialect
Thanks guys
b
|