Milind Kulkarni wrote:

We have more than 1 million records in Customer Database.  We have
requirement that the output of a search query should be limited to 1000
records only.  Can anybody quickly let me know how do you achieve this
using EJB-QL.

I doubt that you can.

EJB-QL is a minimalistic variation on SQL.  And even standard SQL does
not provide a way to do what you are asking.  Some databases allow that
but the syntax and limits of use vary by database vendor.

Your only choice would be to use SQL directly.

If you can mix BMP and CMP in the same entity then you could do this by
having one method do SQL and the rest not. (I am not sure if you can do
this.)  Otherwise you will have to make that entity into a BMP.

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to