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:[EMAIL PROTECTED]
Sent: Wednesday, May 03, 2006 4:39 PM
To: [email protected]
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>
>