question: < T > T onFindLast ( Class < T > modelClass , boolean isEager ) { List < T > dataList = query ( modelClass , null , null , null , null , null , "id desc" , "1" , getForeignKeyAssociations ( modelClass . getName ( ) , isEager ) ) ; if ( dataList . size ( ) > 0 ) { return dataList . get ( 0 ) ; } return null ; }
target:  The open interface for other classes in CRUD package to query the last record in a table. If the result set is empty, gives null back.