I have to execute a query like : Select * from Application a where a.appNum in (select appNum from Deal d where d.appNum = a.appNum); I tried this :
criteria.list() gives an error
com.sybase.jdbc2.jdbc.SybSQLException: Incorrect syntax near ','.. The hibernate query generated is
select this_.appNum as y0_ from Application this_ where this_.appNum in (select this0__.appNum as y0_ from Deal this0__)
. I am using Sybase DB and Hibernate 3. Please help..