Hibernate: select * from ( select rownumber() over() as row_, cliente0_.contaa as contaa, cliente0_.agencia as agencia, cliente0_.dac10 as dac10, cliente0_.codservc as codservc, cliente0_.dtenvio as dtenvio, cliente0_.hrenv as hrenv, cliente0_.staenvio as staenvio, cliente0_.codtxt as codtxt, cliente0_.dddtec as dddtec, cliente0_.tel8 as tel8, cliente0_.operadra as operadra, cliente0_.dataatua as dataatua, cliente0_.dtcada as dtcada, cliente0_.ebusines as ebusines, cliente0_.ebusidat as ebusidat, cliente0_.horaalte as horaalte, cliente0_.horacada as horacada, cliente0_.txtcad as txtcad from DB2DESEN.CLIENTES cliente0_ ) as temp_ where row_ <= ?
16:41:34,896 WARN JDBCExceptionReporter:38 - SQL Error: -104, SQLState: 42601
6975 [main] WARN net.sf.hibernate.util.JDBCExceptionReporter - SQL Error: -104, SQLState: 42601
6975 [main] WARN net.sf.hibernate.util.JDBCExceptionReporter - SQL Error: -104, SQLState: 42601
16:41:34,896 ERROR JDBCExceptionReporter:46 - [IBM][CLI Driver][DB2] SQL0104N An unexpected token "(" was found following "". Expected tokens may include: ", FROM INTO ". SQLSTATE=42601
6975 [main] ERROR net.sf.hibernate.util.JDBCExceptionReporter - [IBM][CLI Driver][DB2] SQL0104N An unexpected token "(" was found following "". Expected tokens may include: ", FROM INTO ". SQLSTATE=42601
6975 [main] ERROR net.sf.hibernate.util.JDBCExceptionReporter - [IBM][CLI Driver][DB2] SQL0104N An unexpected token "(" was found following "". Expected tokens may include: ", FROM INTO ". SQLSTATE=42601
16:41:34,936 WARN JDBCExceptionReporter:38 - SQL Error: -104, SQLState: 42601
7015 [main] WARN net.sf.hibernate.util.JDBCExceptionReporter - SQL Error: -104, SQLState: 42601
7015 [main] WARN net.sf.hibernate.util.JDBCExceptionReporter - SQL Error: -104, SQLState: 42601
16:41:34,986 ERROR JDBCExceptionReporter:46 - [IBM][CLI Driver][DB2] SQL0104N An unexpected token "(" was found following "". Expected tokens may include: ", FROM INTO ". SQLSTATE=42601
7065 [main] ERROR net.sf.hibernate.util.JDBCExceptionReporter - [IBM][CLI Driver][DB2] SQL0104N An unexpected token "(" was found following "". Expected tokens may include: ", FROM INTO ". SQLSTATE=42601
7065 [main] ERROR net.sf.hibernate.util.JDBCExceptionReporter - [IBM][CLI Driver][DB2] SQL0104N An unexpected token "(" was found following "". Expected tokens may include: ", FROM INTO ". SQLSTATE=42601
16:41:35,006 ERROR JDBCExceptionReporter:38 - Could not execute query
COM.ibm.db2.jdbc.DB2Exception: [IBM][CLI Driver][DB2] SQL0104N An unexpected token "(" was found following "". Expected tokens may include: ", FROM INTO ". SQLSTATE=42601
Este erro... aqui uso o DB2 7.2
Dialeto e Driver utilizado
hibernate.dialect net.sf.hibernate.dialect.DB2Dialect
hibernate.connection.driver_class COM.ibm.db2.jdbc.app.DB2Driver