Re: Dynamic finder method with CMP

2000-06-13 Thread louth,william
PROTECTED] Subject: Re: Dynamic finder method with CMP Wade et al: We had this same scenario and we chose to use a session bean for the dynamic querying. We found that performance would be heavily impacted by using a CMP entity bean (since you'd have one database hit for the initial find, and

Re: Dynamic finder method with CMP

2000-06-12 Thread Biske, Todd
Title: RE: Dynamic finder method with CMP Wade et al: We had this same scenario and we chose to use a session bean for the dynamic querying. We found that performance would be heavily impacted by using a CMP entity bean (since you'd have one database hit for the initial find, and then 1 hit

Re: Dynamic finder method with CMP

2000-06-09 Thread Peter Antman
Personally I think this is one of the dark corners of the EJB specification. Not so much because of the difference between BMP and CMP beans, and not because of the underspecification of how to define findByXXX in CMP beans, but because these finders don't belong in the bean definition in the

Re: Dynamic finder method with CMP

2000-06-09 Thread Wade Catlyn
I was also thinking of a limited scenario where a bean could have say three container-managed finders , findByName(String name), findByAge(int age) and findByNameAndAge(String name,int age). Along with these there would be one bean-managed finder, searchCriteria(SearchCriteria sc) which would

Re: Dynamic finder method with CMP

2000-06-09 Thread louth,william
-Original Message- From: Wade Catlyn [mailto:[EMAIL PROTECTED]] Sent: Friday, June 09, 2000 2:20 PM To: [EMAIL PROTECTED] Subject: Re: Dynamic finder method with CMP I was also thinking of a limited scenario where a bean could have say three container-managed finders , findByName(String

Dynamic finder method with CMP

2000-06-08 Thread Wade Catlyn
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,