ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davypulin...@telenet.be
Subject Re: Please help me.
Date Fri, 01 Jun 2007 12:41:14 GMT
Ok thanks

the documentation is on www.ibatis.org are do you have a better site?

>----- Oorspronkelijk bericht -----
>Van: Zoran Avtarovski [mailto:zoran@sparecreative.com]
>Verzonden: vrijdag, juni 1, 2007 01:57 PM
>Aan: 'iBatis Java Mail List'
>Onderwerp: Re: Please help me.
>In your SqlMap.xml try the following:
> <sqlMap namespace="Department">
> <select id="departmentcode" remapResults="true" parameterClass="String"
> resultClass="hashmap">
> select departmentcode from $value$.DEPARTMENT
> </select> 
> </sqlMap>
>Then your Java code you have a few errors. You need to cast the result to a
>hashmnap and you also need to pass the schema String as a parameter as
>sqlMap.queryForList("Department.departmentcode", schema);
>I also think you need to go over the online documentation. It's pretty good
>for getting started. You'll find it's well worth the few hours reading.
>Without the fundamentals you're going to be struggling.

View raw message