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

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