Hi Ewan,
I only implemented the �AND� condition, so any records must match criteria for all fields that are not null.
My reason for this was that I couldn't see a sensible (or simple) way of implementing the �OR� condition with the current find method signature (without adding a new search method), and from an application point of view it didn't make sense to me to support a search where you could allow the user to select a name of a hotel OR and location.
However one of my must requirements was :
Must allow the user to search data for all records, or for records where the name and/or location.
To me this requirement just means that the user can select :
Just the nameJust the locationBoth name and location I know
alot of people have passed with this assumption, and just tried to keep everything as simple as possible, I felt that the find method signature doesn't enable the support of a complex search that you may find in a SQL database.
Cheers,
Jason
[ June 23, 2008: Message edited by: Jason Moors ]