java - BeanPropertyRowMapper vs RowMapper -
i have table more 100 columns. using spring jdbc in our application. there many columns in table, decided use beanpropertyrowmapper fetching records db. avoid writing hardcoded column , property names in code become difficult manage. however, when application went performance test, found there significant performance hit due using beanpropertyrowmapper. decide re-write code rowmapper mapping columns names manually resultset data object properties. improved performance.
my question is, if beanpropertyrowmapper cannot used high number of columns, how helping writing cleaner manageable code. there other way using jdbc can achieve performance manageable code?
Comments
Post a Comment