So far I've had a little struggle to implement a Query By Example form as well.

Orion does generate finder methods for you. You can define them using the finder-method
definitions in 'orion-ejb-jar.xml'. The dificulty is in the more complex queries.

Joe Walnes and Torgier Lerkerod reacted to a question from me and gave a good
explanation how to tackle this (mid Sept).

I haven't implemented it yet. I ran into trouble with quoting the sql queries in the 
finder
sp[ecification and had to focus on other stuff first, so it is on the list to 
implement early
next month for me.

Frank

On Friday, October 27, 2000 4:30 AM, Duffey, Kevin [SMTP:[EMAIL PROTECTED]] wrote:
> Hi all,
> 
> I am a little confused on one thing..if I create an entity such as
> 
> name, address1, address2, city, state, zip, home phone, fax, cell
> 
> And a "profile" page shows those fields..and I can store that as an entity
> in the database. The problem is..what if I want the ability to search on ALL
> of those fields? Do I need to define the PK class with all of the fields
> too? I am not sure exactly to corelation between an SQL Query where I could
> put in a "where x = z and x2 = z2" to allow searching on more than one
> field, when dealing with entity beans and primary keys to pull up searches.
> Can someone explain how I would allow a search on every field of an entity
> bean?
> 
> Thanks.
> 

Reply via email to