Re: How to convert data type in java code with ibatis framework

2006-11-22 Thread Anthony Hong
Looks like your suggestion can help me. If this problem can be solved, then I think it works. The problem is: ResultGetter in TypeHandlerCallback only works with one filed, how to conjuction with another field. Say my dynamic object has one property save value and one property save its class type.

Re: How to convert data type in java code with ibatis framework

2006-11-22 Thread Caio Zanchetti
Hi, I don't know if I could understand very well your question, but you can define an "extension" through the TypeHandlerCallback class implementation. Than you will can automatic convert between two types. Regards, On 11/21/06, Anthony Hong <[EMAIL PROTECTED]> wrote: I have a common table t

How to convert data type in java code with ibatis framework

2006-11-21 Thread Anthony Hong
I have a common table that stores data with id and value. The value field defined in DB is varchar2. Currently each time I store or retrieve data from db, I convert value from object to string in inserting, updating. Or convert value from string to objec in selectinig. I'd like to know how to achi