Buggy code:
stmt . setString ( 16 , a . getVarcharCol ( ) ) ; stmt . setString ( 17 , a . getVarcharIgnorecaseCol ( ) ) ; stmt . setString ( 18 , a . getCharCol ( ) ) ; stmt . setString ( 19 , a . getClobCol ( ) ) ; stmt . executeUpdate ( ) ; stmt . close ( ) ; mon . stop ( ) ; mon = MonitorFactory . start ( "[insert]<seq2seq4repair_space>persist" ) ; persist . insert ( a ) ; mon . stop ( ) ; } System . out . println ( ) ; <START_BUG> long id = persist . read ( int . class , "select<seq2seq4repair_space>min(id)<seq2seq4repair_space>from<seq2seq4repair_space>all_types" ) ; <END_BUG> System . out . print ( "read" ) ; a = new AllTypes ( ) ; for ( int i = 1 ; i <= reads ; i ++ ) { if ( ( i % 50 ) == 0 ) System . out . print ( ( "<seq2seq4repair_space>" + i ) ) ; if ( ( i % 1000 ) == 0 ) System . out . println ( ) ; Monitor mon = MonitorFactory . start ( "[read<seq2seq4repair_space>single]<seq2seq4repair_space>jdbc" ) ; PreparedStatement stmt = connection . prepareStatement ( "select<seq2seq4repair_space>*<seq2seq4repair_space>from<seq2seq4repair_space>all_types<seq2seq4repair_space>where<seq2seq4repair_space>id=?" ) ; stmt . setLong ( 1 , id ) ; ResultSet rs = stmt . executeQuery ( ) ; rs . next ( ) ; a . setIntCol ( rs . getLong ( 1 ) ) ; a . setBooleanCol ( rs . getBoolean ( 2 ) ) ; a . setTinyintCol ( rs . getInt ( 3 ) ) ; a . setSmallintCol ( rs . getInt ( 4 ) ) ; a . setBigintCol ( rs . getLong ( 5 ) ) ; a . setDecimalCol ( rs . getLong ( 6 ) ) ; a . setDoubleCol ( rs . getDouble ( 7 ) ) ; a . setRealCol ( rs . getFloat ( 8 ) ) ; a . setTimeCol ( rs . getTime ( 9 ) ) ; a . setDateCol ( rs . getDate ( 10 ) ) ; a . setTimestampCol ( rs . getTimestamp ( 11 ) ) ; a . setBinaryCol ( rs . getBytes ( 12 ) ) ; a . setBlobCol ( rs . getBytes ( 13 ) ) ; a . setOtherCol ( rs . getObject ( 14 ) ) ; a . setUuidCol ( rs . getBytes ( 15 ) ) ; a . setVarcharCol ( rs . getString ( 16 ) ) ; a . setVarcharIgnorecaseCol ( rs . getString ( 17 ) ) ; a . setCharCol ( rs . getString ( 18 ) ) ; a . setClobCol ( rs . getString ( 19 ) ) ; stmt . close ( ) ; mon . stop ( ) ; mon = MonitorFactory . start ( "[read<seq2seq4repair_space>single]<seq2seq4repair_space>persist" ) ; a = persist . readByPrimaryKey ( AllTypes . class , id ) ; mon . stop ( ) ; mon = MonitorFactory . start ( "[read<seq2seq4repair_space>single]<seq2seq4repair_space>persist<seq2seq4repair_space>map" ) ; persist . readMap ( "select<seq2seq4repair_space>*<seq2seq4repair_space>from<seq2seq4repair_space>all_types<seq2seq4repair_space>where<seq2seq4repair_space>id=?" , id ) ; mon . stop ( ) ; } System . out . println ( ) ; System . out . print ( "read<seq2seq4repair_space>list" ) ; for ( int i = 1 ; i <= readLists ; i ++ ) { if ( ( i % 1 ) == 0 ) System . out . print ( ( "<seq2seq4repair_space>" + i ) ) ; if ( ( i % 20 ) == 0 ) System . out . println ( ) ; List al = new ArrayList ( ) ; Monitor mon = MonitorFactory . start ( "[read<seq2seq4repair_space>list]<seq2seq4repair_space>jdbc" ) ; PreparedStatement stmt = connection . prepareStatement ( "select<seq2seq4repair_space>*<seq2seq4repair_space>from<seq2seq4repair_space>all_types" ) ; ResultSet rs = stmt . executeQuery ( ) ; while ( rs . next ( ) ) { a . setIntCol ( rs . getLong ( 1 ) ) ; a . setBooleanCol ( rs . getBoolean ( 2 ) ) ; a . setTinyintCol ( rs . getInt ( 3 ) ) ; a . setSmallintCol ( rs . getInt ( 4 ) ) ; a . setBigintCol ( rs . getLong ( 5 ) ) ; a . setDecimalCol ( rs . getLong ( 6 ) ) ; a . setDoubleCol ( rs . getDouble ( 7 ) ) ; a . setRealCol ( rs . getFloat ( 8 ) ) ; a . setTimeCol ( rs . getTime ( 9 ) ) ; a . setDateCol ( rs . getDate ( 10 ) ) ; a . setTimestampCol ( rs . getTimestamp ( 11 ) ) ; a . setBinaryCol ( rs . getBytes ( 12 ) ) ; a . setBlobCol ( rs . getBytes ( 13 ) ) ; a . setOtherCol ( rs . getObject ( 14 ) ) ; a . setUuidCol ( rs . getBytes ( 15 ) ) ; a . setVarcharCol ( rs . getString ( 16 ) ) ; a . setVarcharIgnorecaseCol ( rs . getString ( 17 ) ) ; a . setCharCol ( rs . getString ( 18 ) ) ; a . setClobCol ( rs . getString ( 19 ) ) ; al . add ( a ) ; } stmt . close ( ) ; mon . stop ( ) ; mon = MonitorFactory . start ( "[read<seq2seq4repair_space>list]<seq2seq4repair_space>persist" ) ; persist . readList ( AllTypes . class ) ; mon . stop ( ) ; mon = MonitorFactory . start ( "[read<seq2seq4repair_space>list]<seq2seq4repair_space>persist<seq2seq4repair_space>map" ) ; persist . readMapList ( "select<seq2seq4repair_space>*<seq2seq4repair_space>from<seq2seq4repair_space>all_types" ) ; mon . stop ( ) ; } System . out . println ( ) ; System . out . println ( ) ; System . out . println ( "finished" ) ; InputStream is = Thread . currentThread ( ) . getContextClassLoader ( ) . getResourceAsStream ( "net//sf//persist//tests//performance//sorttable.js" ) ; BufferedReader r = new BufferedReader ( new InputStreamReader ( is ) ) ; StringBuffer sorttable = new StringBuffer ( ) ; String line ; while ( ( line = r . readLine ( ) ) != null ) { sorttable . append ( ( line + "\n" ) ) ; } System . out . println ( ( "writing<seq2seq4repair_space>report<seq2seq4repair_space>to<seq2seq4repair_space>" + reportPath ) ) ; String report = MonitorFactory . getReport ( ) ; Writer w = new BufferedWriter ( new FileWriter ( reportPath ) ) ; w . write ( "<html><head><style>*{font-family:tahoma;<seq2seq4repair_space>font-size:8pt}<seq2seq4repair_space>td{padding:3px}<//style>"

Fix:
long id = persist . read ( long . class , "select<seq2seq4repair_space>min(id)<seq2seq4repair_space>from<seq2seq4repair_space>all_types" ) ;