You could use a typehandler to do that: http://opensource2.atlassian.com/confluence/oss/display/IBATIS/How+do+I+ use+a+Custom+Type+Handler+with+complex+property+or+Type+Safe+Enumeration
Niels -----Original Message----- From: Olivier Antoine [mailto:[EMAIL PROTECTED] Sent: donderdag 19 januari 2006 23:20 To: [email protected] Subject: boolean JavaType and mapping Hello everyone, I have to re-write a website with an existant MySQL database with an important number of data ...so i could not change database structure (column type and so on) I m'a sking if it's possible and so ...How to? make a mapping between a boolean from my java bean class and an integer in my database column associated? for example when in my database I have 1 it return true in my boolean and inverse. thanks a lot, Olivier
