Hi folks,

     I am trying to write a search Servlet. This
Servlet will delegate the search criteria to an Entity
bean and get the results.

     Now I have 5 searchable fields.User can select
one or more fields to fill in the search criteria. If
I used bean managed persistence then I can write a
simple method which returns an enumeration and use it
everywhere calling the same method. This method will
dynamically create the SQL statement and gets me back
the results.

     Now the question is how do we do the same thing
in Container managed persistence.One way is to specify
finder methods for all the permutations and
combinations. Then is doable, but I want to write a
single method to do the job. I appreciate your reply.
thanks in advance.

Giri

__________________________________________________
Do You Yahoo!?
Get Yahoo! Mail - Free email you can access from anywhere!
http://mail.yahoo.com/

===========================================================================
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