java - my SQL query returns 15 rows but while running via hibernate it return 14 rows to the list? -
hi using below query retrieve list of products.
select qphgr.xprodhrchygrp,qphgr.cprodhrchygrp ,qphgr.cbusn,qphgr.csgm hpp.pnigut pnigu ,hpp.pogsrt pogsr , hql.qphgrt qphgr ,hql.qprodt qprodt ,hpp.pgplut pgplu pogsr.cbusn = '30' , pogsr.csgm in ('cbu') , pogsr.corg = '25k' , pogsr.csuppl = '999' , pogsr.crelt = 'nig' , pnigu.dversn between pogsr.dfr , pogsr.dto , pnigu.cbusn = pogsr.cbusn_rel , pnigu.csgm = pogsr.csgm_rel , pnigu.corg = pogsr.corg_rel , pnigu.csuppl = pogsr.csuppl_rel , pnigu.cbusn = qphgr.cbusn , pgplu.cmod = qprodt.cmod , pgplu.ctyp = qprodt.ctyp , pgplu.copt = qprodt.copt , pgplu.checol = qprodt.checol , qprodt.cactiv= 'y' , qprodt.cbusn = qphgr.cbusn , qprodt.csgm = qphgr.csgm , qprodt.cprodhrchygrp = qphgr.cprodhrchygrp , pnigu.corg=pgplu.corg , pnigu.csuppl=qprodt.csupplgen group qphgr.xprodhrchygrp,qphgr.cprodhrchygrp,qphgr.cbusn,qphgr.csgm,qphgr.nprntingseqpp order qphgr.nprntingseqpp
when run query in squirrel returns 15 rows right. when i'm executing same query inside application (i have used hibernate) returning 14 rows in return list! how possible. what's going wrong?
Comments
Post a Comment