You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ibatis.apache.org by "Kengkaj Sathianpantarit (JIRA)" <ib...@incubator.apache.org> on 2009/04/22 13:07:47 UTC

[jira] Created: (IBATIS-593) groupBy doesn't work for nested property

groupBy doesn't work for nested property
----------------------------------------

                 Key: IBATIS-593
                 URL: https://issues.apache.org/jira/browse/IBATIS-593
             Project: iBatis for Java
          Issue Type: Bug
          Components: SQL Maps
    Affects Versions: 2.3.4
         Environment: Windows Vista
            Reporter: Kengkaj Sathianpantarit


The following configuration doesn't work (iBATIS doesn't group result):
<resultMap class="SomeClass" id="someId" groupBy="organization.organizationId">
  	<result property="organization" resultMap="Namespace.get-organization-result"/>
        ...
</resultMap>

But the following does work:
<resultMap class="SomeClass" id="someId" groupBy="organizationId">
  	<result property="organizationId" column="o_organizationId"/>
  	<result property="organization" resultMap="Namespace.get-organization-result"/>
        ...
</resultMap>

It seems that groupBy doesn't support nested property.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.