Buggy code:
@ Repository public class AspectRepositoryImpl implements AspectRepository { @ Autowired private JdbcOperations jdbcOperations ; class Entry { private Object key ; private Integer value ; public Object getKey ( ) { } public void setKey ( Object key ) { } public Integer getValue ( ) { } public void setValue ( Integer value ) { } } private static final String SQLGETACCESSBYNAME = "SELECT<seq2seq4repair_space>*<seq2seq4repair_space>" + ( ( "FROM<seq2seq4repair_space>accessbyname,<seq2seq4repair_space>events<seq2seq4repair_space>" + "WHERE<seq2seq4repair_space>" ) + "accessbyname.eventname<seq2seq4repair_space>=<seq2seq4repair_space>events.name" ) ; @ Override public Map < Event , Integer > getAccessByName ( ) { } @ Override public void saveAccessByName ( Event event ) { } private Integer getCountByTable ( String tableName , Event event ) { } private void saveEventToTable ( String tableName , Event event ) { } private static final String SQLGETPRICEQUERIED = "SELECT<seq2seq4repair_space>*<seq2seq4repair_space>" + ( ( "FROM<seq2seq4repair_space>pricequeried,<seq2seq4repair_space>events<seq2seq4repair_space>" + "WHERE<seq2seq4repair_space>" ) + "pricequeried.eventname<seq2seq4repair_space>=<seq2seq4repair_space>events.name" ) ; @ Override public Map < Event , Integer > getPriceQueried ( ) { List < AspectRepositoryImpl . Entry > entryList = jdbcOperations . query ( AspectRepositoryImpl . SQLGETPRICEQUERIED , ( ResultSet resultSet , int rowNum ) -> { Event event = new Event ( ) ; <START_BUG> event . setBasePrice ( resultSet . getDouble ( "basePrise" ) ) ; <END_BUG> event . setName ( resultSet . getString ( "name" ) ) ; event . setRate ( EventRate . valueOf ( resultSet . getString ( "rate" ) ) ) ; Entry entry = new Entry ( ) ; entry . setKey ( event ) ; entry . setValue ( resultSet . getInt ( "count" ) ) ; return entry ; } ) ; Map < Event , Integer > result = new HashMap < > ( ) ; entryList . forEach ( ( entry ) -> result . put ( ( ( Event ) ( entry . getKey ( ) ) ) , entry . getValue ( ) ) ) ; return result ; } @ Override public void savePriceQueried ( Event event ) { } private static final String SQLGETBOOKEDTICKET = "SELECT<seq2seq4repair_space>*<seq2seq4repair_space>" + ( ( "FROM<seq2seq4repair_space>bookedtickets,<seq2seq4repair_space>events<seq2seq4repair_space>" + "WHERE<seq2seq4repair_space>" ) + "bookedtickets.eventname<seq2seq4repair_space>=<seq2seq4repair_space>events.name" ) ; @ Override public Map < Event , Integer > getBookedTicket ( ) { } @ Override public void saveBookedTicket ( Event event ) { } private static final String SQLGETTOTALDISCOUNTS = "SELECT<seq2seq4repair_space>*<seq2seq4repair_space>FROM<seq2seq4repair_space>totaldiscounts" ; @ Override public Map < String , Integer > getTotalDiscounts ( ) { } private Integer getTotalDiscountTimes ( DiscountStrategy strategy ) { } @ Override public void saveTotalDiscount ( DiscountStrategy strategy ) { } private static final String SQLGETINFOABOUTTOTALDISCOUNTFORUSER = "SELECT<seq2seq4repair_space>" + ( ( ( ( ( ( ( "<seq2seq4repair_space>totaldiscountsforuser.count,<seq2seq4repair_space>" + "<seq2seq4repair_space>users.id<seq2seq4repair_space>id,<seq2seq4repair_space>" ) + "<seq2seq4repair_space>users.birthDay,<seq2seq4repair_space>" ) + "<seq2seq4repair_space>users.email,<seq2seq4repair_space>" ) + "<seq2seq4repair_space>users.name<seq2seq4repair_space>" ) + "FROM<seq2seq4repair_space>totaldiscountsforuser,<seq2seq4repair_space>users<seq2seq4repair_space>" ) + "WHERE<seq2seq4repair_space>" ) + "totaldiscountsforuser.userid<seq2seq4repair_space>=<seq2seq4repair_space>users.id;" ) ; @ Override public Map < User , Integer > getInfoAboutTotalDiscountForUser ( ) { } private Integer previousInfoAboutTotalDiscountForUser ( User user ) { } @ Override public void saveInfoAboutTotalDiscountForUser ( User user ) { } }

Fix:
event . setBasePrice ( resultSet . getDouble ( "basePrice" ) ) ;