Make your own free website on Tripod.com

The EntityExpr object

   List exprs = new LinkedList();

   exprs.add(new EntityExpr("firstName", true, 
      EntityOperator.LIKE, "%" + 
      firstName.toUpperCase() + "%", true));
   exprs.add(new EntityExpr("lastName", true, 
      EntityOperator.LIKE, "%" + 
      lastName.toUpperCase() + "%", true));
   Collection pc = delegator.findByAnd("Person", exprs, 
      UtilMisc.toList("lastName", "firstName", "partyId"));