Custom RowMapper
Learn how to use the RowMapper interface to define the row mapper.
We'll cover the following...
The BeanPropertyRowMapper
can be used to map the results of the query to our bean. If the database table has a different structure or column names, we need to define our custom mapping.
RowMapper
interface
We can define our own row mapper in the PlayerDao
class by implementing the RowMapper
interface and providing the bean onto which the rows will be mapped. The custom row mapper, ...
Access this course and 1400+ top-rated courses and projects.