Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Is there a way to nest result maps or turn off the roll-up behavior of associations and collections?
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Jeff Butler  
View profile  
 More options Nov 1 2012, 3:16 pm
From: Jeff Butler <jeffgbut...@gmail.com>
Date: Thu, 1 Nov 2012 15:16:44 -0400
Local: Thurs, Nov 1 2012 3:16 pm
Subject: Re: Is there a way to nest result maps or turn off the roll-up behavior of associations and collections?

This probably isn't exactly what you're looking for either, but it should
work:

<resultMap id="abcd" type="com.Abcd">
  <result property="a" column="a"/>
  <result property="bcd.b" column="b"/>
  <result property="bcd.c" column="c"/>
  <result property="bcd.d" column="d"/>
</resultMap>

Jeff Butler

On Thu, Nov 1, 2012 at 2:58 PM, dq <d...@kayak.com> wrote:
> The solution I (don't like) found is to use resultMaps with the
> <constructor> tag, which thanks to
> http://code.google.com/p/mybatis/issues/detail?id=15 can call a
> constructor on the encompassing object passing in the objects constructed
> in its constituent resultMaps.  I'd still prefer being able to do it the
> iBatis way so I don't have to create constructors to satisfy the DAO.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.