ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Clinton Begin <clinton.be...@gmail.com>
Subject Re: ResultMap composite key problem - SOLVED
Date Thu, 19 May 2005 21:43:21 GMT
Hmmm..I suppose we could have implemented a better error check there....feel 
free to put in an "Improvement" in JIRA.

Clinton

On 5/19/05, Stuart Piltch <stuart@gradientblue.com> wrote:
> 
> Of course it was something simple.
> 
> After ripping apart my project until it was just one set of bare bones 
> jars
> and classes and still seeing the error, I restored from cvs, cursed the 
> computer
> and made some coffee. After a few sips away from the computer, I realized 
> what
> happened. A quick trip to my desk, followed by one tap (ok, slam) of the 
> delete
> key confirmed it.
> 
> This part was correct as we thought it should be:
> 
> <result property="categories" column="{testId=test_id, 
> asmtId=assessment_id}"
> select="getCompetencyTypes" />
> 
> But, the corresponding select statement looked like this:
> 
> <select id="getCompetencyTypes" parameterClass="int"
> resultMap="competencyTypeResult">
> 
> Removing parameterClass="int" made the problem go away.
> 
> Cheers,
> 
> - stuart
> 
>

Mime
View raw message