You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user-java@ibatis.apache.org by Meindert <me...@pastelebusiness.com> on 2005/10/20 17:27:01 UTC
Implicit Result Maps
Is it possible to use “Implicit Result Maps” for (not to) complex
properties?
Example;
I’ve got a Person_Id as FK and the FirstName, LastName in a other table.
I would like to bind
Persons.FirstName to 'author.firstName’
To get the property name I select;
SELECT Persons.FirstName as 'author.firstName’
But this doesn’t work:-(
(The resultMap would be;
<result property='author.firstName’ column=”
Persons.FirstName”/>
)
MEINDERT HOVING
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.344 / Virus Database: 267.12.4/143 - Release Date: 19/10/2005
Re: Implicit Result Maps
Posted by "Tom B." <to...@gmail.com>.
Yes. See:
http://issues.apache.org/jira/browse/IBATIS-172?page=all
On 10/20/05, Meindert <me...@pastelebusiness.com> wrote:
>
>
>
> Is it possible to use "Implicit Result Maps" for (not to) complex
> properties?
>
>
>
> Example;
>
> I've got a Person_Id as FK and the FirstName, LastName in a other table.
>
> I would like to bind
>
> Persons.FirstName to 'author.firstName'
>
>
>
> To get the property name I select;
>
> SELECT Persons.FirstName as 'author.firstName'
>
> But this doesn't workL
>
>
>
> (The resultMap would be;
>
> <result property='author.firstName' column="
> Persons.FirstName"/>
>
> )
>
>
>
> MEINDERT HOVING
>
>
>
>
>
>
> --
> No virus found in this outgoing message.
> Checked by AVG Anti-Virus.
> Version: 7.0.344 / Virus Database: 267.12.4/143 - Release Date: 19/10/2005
>