ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Niels Beekman" <n.beek...@wis.nl>
Subject RE: boolean JavaType and mapping
Date Fri, 20 Jan 2006 08:35:54 GMT
You could use a typehandler to do that:


-----Original Message-----
From: Olivier Antoine [mailto:oli.antoine@gmail.com] 
Sent: donderdag 19 januari 2006 23:20
To: user-java@ibatis.apache.org
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 

for example when in my database I have 1 it return true in my boolean 
and inverse.

thanks a lot,

View raw message