ibatis-user-cs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexandre Grenier" <Alex.Gren...@markettools.com>
Subject RE: Could not configure ResultMap
Date Wed, 03 May 2006 22:04:02 GMT

I figured it was irrelevant (doesn't seem to go that far) so I left it
out for clarity. Here it is (was right below resultMaps tag):

  <statements>
    <select id="AAPSelect" parameterClass="int" resultMap="AAPResult">
      SELECT email, password
      FROM accounts
      WHERE id = #value#
    </select>
  </statements>

I'm still totally puzzled by this null reference exception!


-----Original Message-----
From: Michael Schall [mailto:mike.schall@gmail.com] 
Sent: Wednesday, May 03, 2006 4:39 PM
To: user-cs@ibatis.apache.org
Subject: Re: Could not configure ResultMap

Where are you actually using the  AAPResult resultMap?  You show below
where it is defined, but not where it is used...

> <?xml version="1.0" encoding="utf-8" ?>
>
> <sqlMap
>         namespace="Domain"
>   xmlns="http://ibatis.apache.org/mapping"
>         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
>
>         <!-- XML "behind" document for the Account service class. -->
>
>         <alias>
>
>     <typeAlias alias="AccountAuthenticateParam"
> type="Domain.Tests.AccountAuthenticateParam, Domain" />
>
>   </alias>
>
>         <resultMaps>
>
>     <resultMap id="AAPResult" class="AccountAuthenticateParam">
>       <result property="Email" column="email" />
>       <result property="Password" column="password" />
>     </resultMap>
>
>   </resultMaps>
>
> </sqlMap>
>

Mime
View raw message