I'm looking at doing something like this:
public class MyGenericTypeHandlerCallback<T> : ITypeHandlerCallback
then in my sqlmap i want to do:
<alias>
<typeAlias alias="MySpecialTypeHandler"
type="myFirstNamespace.MyGenericTypeHandlerCallback`1[mysecondNamespace.MySpecialType],
myFirstAssembly"/>
</alias>
the key here is that MyGenericTypeHandlerCallback is defined and compiled in
myFirstAssembly, while MySpecialType is defined and compiled in a different
assembly, mySecondAssembly.
So when i try the alias above, iBatis complains (rightfully so) that it
can't find mysecondNamespace.MySpecialType. It's right to complain since i
did not tell it anything about mySecondAssembly.
so i tried:
<alias>
<typeAlias alias="MySpecialTypeHandler"
type="myFirstNamespace.MyGenericTypeHandlerCallback`1[mysecondNamespace.MySpecialType,
mySecondAssembly], myFirstAssembly"/>
</alias>
but it doesn't like this either. Any creative idea as to how to make this
work? For a variety of reasons, i would rather not define the generic
MyGenericTypeHandlerCallback type in the same assembly as MySpecialType.
Any idea is welcome,
thanks.
--
View this message in context:
http://old.nabble.com/Does-iBatis-support-generic-TypeHandlerCallbacks-spanning-multiple-assemblies--tp26633442p26633442.html
Sent from the iBATIS - User - Cs mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]