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: Can You Map Column Indexes to Properties?
Date Wed, 11 Apr 2007 15:31:40 GMT

Jeff Butler-2 wrote:
> You can do it with a result map like this:
> <resultMap id="fredResult" class="somepackage.Fred">
>   <result property="id" columnIndex="1"/>
>   <result property="name" columnIndex="2"/>
> </resultMap>
> Jeff Butler

Ok, that looks perfect. Too bad I didn't see that in the docs I have, could
have saved some bandwidth in the tubes. Thanks Jeff for taking the time to
View this message in context: http://www.nabble.com/Can-You-Map-Column-Indexes-to-Properties--tf3559865.html#a9942088
Sent from the iBATIS - User - Java mailing list archive at Nabble.com.

View raw message