Yep, just a typo. I'll take care of it in the docs. Cheers, Clinton
On Wed, May 19, 2010 at 5:12 AM, alebu <ale...@gmail.com> wrote: > Hi, at this moment I am reading documentation "Advanced Result Mapping" > section and one think I can't understand in the example with blogs (further > reading didn't clarified it either). > > SQL Query is described like: > > <select id="selectBlogDetails" parameterType="int" resultMap=" > detailedBlogResultMap"> > select > B.id as *blog_id*, > B.title as blog_title, > ... > </select> > > Result set mapping for that query described like: > <resultMap id="detailedBlogResultMap" type="Blog"> > <constructor> > <idArg *column="id"* javaType="int"/> > </constructor> > <result property="title" column="blog_title"/> > ... > </resultMap> > > As I understand, the alias for block ID is *blog_id* but constructor's > idArg references to column as *id*. For all other parts of query aliases > are correct (from my POV), so is it a problem with documentation (in this > case it is repeated in further examples too), or I didn't understand > something. >