ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Sanders <tendan...@gmail.com>
Subject Re: New Stored Proc Question - Creating a Bean From Partial Results
Date Thu, 12 Apr 2007 23:47:25 GMT

It took me a little while to figure out how to get around the fact that the
'didSucceed' OUT param is not part of the object (solution: it now is, but
it lives in a superclass for "fetchableBeans") and it works just fine.

The really good news is that somewhere amidst these questions I "got it" and
was able to do the rest of my read procs as well as the insert/update and
delete ones without needing help. 

Thanks to all who helped, and especially you Jeff.



Jeff Butler-2 wrote:
> What if you create the object and pass it as the parameter instead of
> using
> a Map?  Change your parameterMap to use class="BanPolicy", then...
> BanPolicy bp = new BanPolicy();
> bp.setBanPolicyId(33);
> getSqlMapClientTemplate().queryForList("fetch-ban-policy-by-id", bp);
> return bp;
> Jeff Butler

View this message in context: http://www.nabble.com/New-Stored-Proc-Question---Creating-a-Bean-From-Partial-Results-tf3567480.html#a9970595
Sent from the iBATIS - User - Java mailing list archive at Nabble.com.

View raw message