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 Chris Landowski <ch...@aeifinance.com> on 2009/04/14 18:15:06 UTC
Using nested classes with iBatis
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
Re: Using nested classes with iBatis
Posted by Yaojian <sk...@gmail.com>.
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
>
>
>