This forum is now a read-only archive. All commenting, posting, registration services have been turned off. Those needing community support and/or wanting to ask questions should refer to the Tag/Forum map, and to http://spring.io/questions for a curated list of stackoverflow tags that Pivotal engineers, and the community, monitor.

at oracle.jdbc.dbaccess.DBError.throwSqlException(DBE rror.java:134)
at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:2 89)
at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:573)
at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol .java:1891)
at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteDescribe (TTC7Protocol.java:830)
at oracle.jdbc.driver.OracleStatement.doExecuteQuery( OracleStatement.java:2391)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTi meout(OracleStatement.java:2672)
at oracle.jdbc.driver.OraclePreparedStatement.execute Update(OraclePreparedStatement.java:589)
at oracle.jdbc.driver.OraclePreparedStatement.execute Query(OraclePreparedStatement.java:527)
at org.apache.commons.dbcp.DelegatingPreparedStatemen t.executeQuery(DelegatingPreparedStatement.java:92 )
at net.sf.hibernate.impl.BatcherImpl.getResultSet(Bat cherImpl.java:87)
at net.sf.hibernate.loader.Loader.getResultSet(Loader .java:800)
at net.sf.hibernate.loader.Loader.doQuery(Loader.java :189)
at net.sf.hibernate.loader.Loader.doQueryAndInitializ eNonLazyCollections(Loader.java:133)
at net.sf.hibernate.loader.Loader.doList(Loader.java: 955)
at net.sf.hibernate.loader.Loader.list(Loader.java:94 6)
at net.sf.hibernate.hql.QueryTranslator.list(QueryTra nslator.java:846)
at net.sf.hibernate.impl.SessionImpl.find(SessionImpl .java:1543)
at net.sf.hibernate.impl.QueryImpl.list(QueryImpl.jav a:39)
at org.springframework.orm.hibernate.HibernateTemplat e$22.doInHibernate(HibernateTemplate.java:416)
at org.springframework.orm.hibernate.HibernateTemplat e.execute(HibernateTemplate.java:176)
at org.springframework.orm.hibernate.HibernateTemplat e.executeFind(HibernateTemplate.java:196)
at org.springframework.orm.hibernate.HibernateTemplat e.find(HibernateTemplate.java:413)

Hibernate does not seem to construct the SQL properly. Following is the SQL output that I got:
11:31:45,256 INFO [STDOUT] Hibernate: select from