where is the error in this RowMapper
<p>I have this Request <code>SQL</code> :</p>

<pre><code>private List&lt;IWsResponse&gt; getBPartnerDetails(String valueNetwork, String reportLevel2) {

            JdbcTemplate tm = new JdbcTemplate(ds.getDataSource());
            StringBuffer sql =  new StringBuffer("SELECT * FROM XRV_BPARTNERDETAILS order by BPartner_ID");

            ArrayList&lt;Object&gt; params = new ArrayList&lt;Object&gt;();

            response = tm.query(sql.toString(), new BPartnerMapper());

            return response;

        }
</code></pre>

<p>i create a new RowMapper (BPartnerMapper) like this</p>

<pre><code>public class BPartnerMapper implements RowMapper&lt;IWsResponse&gt; {

        @Override
public List&lt;IWsResponse&gt; mapRow(ResultSet rs, int rowNum) throws SQLException {

            List&lt;IWsResponse&gt; bps    = new ArrayList&lt;IWsResponse&gt;();

            while (rs.next()) {

                    bp = new BPartner();
                                      bp.setBPartnerValue(rs.getString("BPartnerValue"));

                //adress
                    adr = new Adress();
                    adr.setBPartnerLocation_ID(BPartner_Location_ID);
                    bp.getAdress().add(adr);

                //user
                    usr = new User();
                    usr.setUser_ID(User_ID);
                    bp.getUsers().add(usr);

                    bps.add(bp)
            }

            return bps;
    }
</code></pre>

<p>the Class BPartner is</p>

<pre><code>public class BPartner implements IWsResponse {

    private String BPartnerValue;

    private ArrayList&lt;Adress&gt; adress = new ArrayList&lt;Adress&gt;();

    private ArrayList&lt;User&gt; users = new ArrayList&lt;User&gt;();

}
</code></pre>

<p>so i get this Error </p>

<p><a href="https://i.stack.imgur.com/q7iXC.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/q7iXC.png" alt="enter image description here"></a></p>

<pre><code>The return type is incompatible with RowMapper&lt;IWsResponse&gt;.mapRow(ResultSet, int)
</code></pre>