I am sure that a lot of you need sometimes the same think as me. I have a simple search that applies one input to more search parameters. But I did not find any nice way to change 'AND'ed criteria to 'OR'ed.
As I was hacking it, I did this:
...
public class SimplePersonList extends EntityQuery {
....
protected String getRenderedEjbql() {
String ejbql = super.getRenderedEjbql();
return ejbql.replaceAll(" and ", " or ");
}
....