It is generating the following query . When I executed it in DB giving teh rownum as 15, I'm getting 15 Invoices. How do we know what value is being used for rownum ?
select * from ( select invoice0_.INVOICEID as INVOICEID82_, invoice0_.DUEDATE as DUEDATE82_, invoice0_.TOTALAMOUNTDUE as TOTALAMO3_82_, invoice0_.INVOICEDATE as INVOICED4_82_, invoice0_.CREATEDDATE as CREATEDD5_82_, invoice0_.CREATEDBY as CREATEDBY82_, invoice0_.MODIFIEDDATE as MODIFIED7_82_, invoice0_.MODIFIEDBY as MODIFIEDBY82_, invoice0_.INVOICEGROUPID as INVOICEG9_82_, invoice0_.INVOICEFILENAME as INVOICE10_82_, invoice0_.ISFILEAVAILABLE as ISFILEA11_82_, invoice0_.TOTALNEWCHARGE as TOTALNE12_82_, invoice0_.FILEAVAILABLEDATE as FILEAVA13_82_, invoice0_.CUSTID as CUSTID82_ from INVOICE invoice0_ where invoice0_.CUSTID = ? order by invoice0_.INVOICEDATE DESC ) where rownum <= ?
|