Why not just do this: <select id="selectAllEntitiesCodes" resultClass="Entity"> select cd_entity code from entity </select>
Larry On Thu, Sep 25, 2008 at 12:36 PM, Daniel Henrique Alves Lima <[EMAIL PROTECTED]> wrote: > Hi everybody. First of all: I'm sorry for my bad English. > > Can I implement/extend some of the IBatis' interfaces and classes > reuse the same > resultMap in a lot of selects (with different columns selected) ? > Something like this: > > <resultMap id="EntityMap" class="Entity"> > <result property="code" column="cd_entity" /> > <result property="name" column="nm_entity" /> > </resultMap> > > <select id="selectAllEntities" resultMap="EntityMap"> > select * from entity > </select> > > <select id="selectAllEntitiesCodes" resultMap="EntityMap"> > select cd_entity from entity > </select> > > > > Thanks in advance ! > > >