For a query as simple as this one, DB2 is throwing SQL error for no reason when used in hibernate.
I think i have all the settings of DB2 for hibernate properties right, cause some other queries are running fine.
SQLException for SQL [/* criteria query */
select this_.col1,this_.col2,this2_.col1,this2_.col3
from TABLE this_
left outer join TABLE1 this2_
on this_.TAB1_ID=this2_.ID
where this2_.ID=?
]; SQL state [36001]; error code [-243]; could not execute query using scroll; nested exception is org.hibernate.exception.GenericJDBCException: could not execute query using scroll
I tried looking up on the IBM site, it does not help at all, as the same test cases work fine on hsqldb.
Note: Hibernate generates the query for me i don't have query generated.
Any help would be really appreciated.
Thanks Sridhar.