Re: IBatis 3 TypeHandler resolution

2009-09-27 Thread Guy Rouillier
Clinton, thanks for the reply. I've completed the type handler implementation. For me, the type handler is specific to one class, which happens to be an enum. For better encapsulation, I made the type handler a static class inside the enum class file. Everything works fine. But that got me

Re: IBatis 3 TypeHandler resolution

2009-09-22 Thread Clinton Begin
No, that's actually correct. If you specify the JDBC type in the type handler, then you have to specify it in the result map. However, if you don't specify the JDBC type in either, that should work too, but will override ALL string types (for example). The reason is that iBATIS doesn't introspec