You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user-cs@ibatis.apache.org by Yaojian <sk...@gmail.com> on 2009/05/27 17:20:06 UTC

Re: Using nested classes with iBatis

A little late for seen this message :-)

I think the plus (+) is used for specifying nested class:

Type t = Type.GetType("MyNamespace.MyNonNestedClass+MyNestedClass,
MyAssembly");

On Wed, Apr 15, 2009 at 12:15 AM, Chris Landowski <ch...@aeifinance.com>wrote:

>  Hello,
>
>
>
> Is it possible to use a nested class as the resultClass for a select
> statement in my data map xml file? If so, what is the proper syntax? I have
> tried both “namespace.parentClass.nestedClass” &
> “namespace.parentClass$nestedClass” and neither work. When retrieving the
> Mapper.Instance() , the following exception is thrown "Could not load type
> from string value”.
>
>
>
> Thanks,
>
> Chris
>
>
>