ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Larry Meadors <lmead...@apache.org>
Subject Re: are there inner classes supported ?
Date Mon, 12 Dec 2005 17:17:17 GMT
Editorial: Inner classes suck.

You may be able to get it to work using this name:

com.tid.ReportDataCuentas$Row

Larry


On 12/12/05, Guido García Bernardo <ggb275@tid.es> wrote:
> I've defined a type alias and a result map using it:
>
> <typeAlias alias="cuenta" type="com.tid.ReportDataCuentas.Row" />
> <resultMap id="resultCuentas" class="cuenta">
>     ...
> </resultMap>
>
> for my inner class:
>
> package com.tid;
> public class ReportDataCuentas {
>     public class Row {
>     ...
>     }
>     ...
> }
>
> But I get a ClassNotFoundException.
> com.ibatis.common.exception.NestedRuntimeException: Error configuring
> Result.  Could not set ResultClass.  Cause:
> java.lang.ClassNotFoundException: com.tid.ReportDataCuentas.Row
> Caused by: java.lang.ClassNotFoundException: com.tid.ReportDataCuentas.Row
>     at
> com.ibatis.sqlmap.engine.builder.xml.SqlMapParser$14.process(SqlMapParser.java:338)
>     ...
>
> Are there inner classes supported by ibatis?
> Thank you very much,
>
> --
> Guido García Bernardo - ggarciab@itdeusto.com
> Tfn. +34 983 54 89 08
> ITDEUSTO - Valladolid
>
>

Mime
View raw message