ok,
i would like to perform full text search fron a seam entity query with paging, order by
instead of using an entityAction.
For instance :
Code:
@Name("alternateActivityQuery")
public class AlternateActivityQuery extends EntityQuery<AlternateActivity> {
private static final long serialVersionUID = 3937355816459756502L;
private static final String EJBQL = "select al from AlternateActivity al";
private static final String[] RESTRICTIONS = {
"lower(p.name) like concat(lower(#{exampleAlternateActivity.name}),'%')"
};
public AlternateActivityQuery() {
setEjbql(EJBQL);
setRestrictionExpressionStrings(Arrays.asList(RESTRICTIONS));
setMaxResults(50);
}
}
Best Regards