This content has been marked as final. Show 1 reply
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 value
And probably leaving yourself open to SQL injection.