<T>T onFindFirst(Class<T> modelClass,boolean isEager){
  List<T> dataList=query(modelClass,null,null,null,null,null,"id","1",getForeignKeyAssociations(modelClass.getName(),isEager));
  if (dataList.size() > 0) {
    return dataList.get(0);
  }
  return null;
}

< T > T onFindFirst ( Class < T > modelClass , boolean isEager ) { List < T > dataList = query ( modelClass , null , null , null , null , null , "id" , "1" , getForeignKeyAssociations ( modelClass . getName ( ) , isEager ) ) ; if ( dataList . size ( ) > 0 ) { return dataList . get ( 0 ) ; } return null ; }
the open interface for other classes in crud package to query the first record in a table . if the result set is empty , gives null back .
