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 Michael Lumley <mi...@micsgarage.com> on 2006/10/27 01:06:25 UTC

Re: iBatis multiple resultsets

Hi,

I had a similar problem with timestamps and ended up solving the problem by
using an Oracle function in the select statement to convert the timestamp to
a string. This solution may work for you depending on the capabilities of
the database you are using.

Cheers
Michael

On 23/10/06, Chema <ch...@gmail.com> wrote:
>
> Hello:
>
> I'm need to use a HashMap class as resultClass property on a iBatis query.
> But this query has got different columns every time is executed.
> So, I can't use resultMap tag
>
> The problem comes with columns which database type is DATE.
> In this case, iBatis returns a java.sql.Date object but I need a
> java.sql.Timestamp , because at first time, date's time is trucated
>
> Is there any way to report to iBatis DataMapper what is the JDBC type to
> return in get methods on HashMap resultClass for DATE values?
> I repeat that I can't use resultMap tag.
>
> Thanks in advance
>
> Bye
>
>
>
>
>
>
>
>
>