@Override public Foo fetchByUuid_C_Last(String uuid,long companyId,OrderByComparator<Foo> orderByComparator){
  int count=countByUuid_C(uuid,companyId);
  if (count == 0) {
    return null;
  }
  List<Foo> list=findByUuid_C(uuid,companyId,count - 1,count,orderByComparator);
  if (!list.isEmpty()) {
    return list.get(0);
  }
  return null;
}

@ Override public Foo fetchByUuid_C_Last ( String uuid , long companyId , OrderByComparator < Foo > orderByComparator ) { int count = countByUuid_C ( uuid , companyId ) ; if ( count == 0 ) { return null ; } List < Foo > list = findByUuid_C ( uuid , companyId , count - 1 , count , orderByComparator ) ; if ( ! list . isEmpty ( ) ) { return list . get ( 0 ) ; } return null ; }
returns the last foo in the ordered set where uuid = & # 63 ; and companyid = & # 63 ; .
