title: Use Of Restriction in EJBQL for Seam
body: <p>I am very new to Seam, I need some clarification in this below code , I need to know how it works, what is use of RESTRICTIONS in this code .......</p>
  
  <pre><code>package org.domain.pixel.action;
  
  import org.domain.pixel.entity.*;
  import org.jboss.seam.annotations.Name;
  import org.jboss.seam.framework.EntityQuery;
  import java.util.Arrays;
  
  @Name("projectList")
  public class ProjectList extends EntityQuery&lt;Project&gt; {
  
   private static final long serialVersionUID = -7673337640345325071L;
  
   private static final String EJBQL = "select project from Project project";
  
   private static final String[] RESTRICTIONS = { 
    "lower(project.processOwner) like lower(concat(#{projectList.project.processOwner},'%'))",
    "lower(project.projectName) like lower(concat(#{projectList.project.projectName},'%'))",
  
     }; 
  
   private Project project = new Project();
  
   public ProjectList() {
    ;
    setEjbql(EJBQL);
    setRestrictionExpressionStrings(Arrays.asList(RESTRICTIONS));
    setMaxResults(25);
   }
  
   public Project getProject() {
    return project;
   }
  }
  </code></pre>