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

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