This content has been marked as final.
Show 1 reply
-
1. Re: Problem implementing search features with EntityQuery Object
pmuir May 14, 2008 12:07 PM (in response to joe)
The problem is when I use the EntityQuery object I cannot retrieve all 'hotels' by submitting an empty search string.
Why does isRestrictionParameterSet consider an empty string an unset parameter value? Will overriding this method cause problems for me?You need the restriction parameter to be omitted to search all hotels. Otherwise you would be restricting your search!
Not sure if this is relevant, but I'm referencing my searchString directly in the getEjbql() method instead of in the RESTRICTIONS variable via EL valueAnd probably leaving yourself open to SQL injection.