Hi folks,

I wish to implement an entity bean that has a findBy method whose search
criteria is specified dynamically. This would be useful for operations
where a user can specify what criteria he wishes to search by. (e.g an
html form with several fields such as name, age, address, date... etc,
and the query would be composed using only the fields which the user
selects).

This can be easily done using bean managed persistence by having a
method of the form: findByCriteria(SearchCriteria sc)
where the desired query would be composed using the information
extracted from the SearchCriteria object.

However this would not be possible if container managed persistence is
used.

Does anyone have any suggestions on how this kind on functionality could
be implemented without having to give up the advanteges of CMP ?

thanks

Wade Catlyn

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