@Override public Foo fetchByField2_First(boolean field2,OrderByComparator<Foo> orderByComparator){
  List<Foo> list=findByField2(field2,0,1,orderByComparator);
  if (!list.isEmpty()) {
    return list.get(0);
  }
  return null;
}

@ Override public Foo fetchByField2_First ( boolean field2 , OrderByComparator < Foo > orderByComparator ) { List < Foo > list = findByField2 ( field2 , 0 , 1 , orderByComparator ) ; if ( ! list . isEmpty ( ) ) { return list . get ( 0 ) ; } return null ; }
returns the first foo in the ordered set where field2 = & # 63 ; .
