ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jerry Jalenak <jerry.jale...@gmail.com>
Subject queryForObject with Preallocated Object
Date Mon, 20 Dec 2004 19:38:46 GMT
I am passing a value object from by business tier to my data tier, and
having sqlMaps use this  object in a queryForObject command :

<snip>

public void getUserByName(UserInfo ui)
   throws SQLException
{
    SqlMapClient sqlMap = getSqlMapClient();
    sqlMap.queryForObject("getUserInfo", ui.getUserName(), ui);
}

</snip>

The statement gets executed correctly, but the 'ui' object is not
getting filled with the result set.  Can any one point out what it is
I'm doing wrong?

Thanks!

Jerry Jalenak

Mime
View raw message